Skip to contents

Count the number of occurrences of NAs over a data frame row-wise

Usage

na_count(df, new_colname = "count_na")

Arguments

df

A dataframe

new_colname

The newly-mutated colname. Default to "count".

Value

A mutated dataframe