Add column containing number of missing data values
It can be useful when doing data analysis to add the number of missing data
points into your dataframe. add_n_miss
adds a column named "n_miss",
which contains the number of missing values in that row.
add_n_miss(data, ..., label = "n_miss")
data |
a dataframe |
... |
Variable names to use instead of the whole dataset. By default this
looks at the whole dataset. Otherwise, this is one or more unquoted
expressions separated by commas. These also respect the dplyr verbs
|
label |
character default is "n_miss". |
a dataframe
airquality %>% add_n_miss() airquality %>% add_n_miss(Ozone, Solar.R) airquality %>% add_n_miss(dplyr::contains("o"))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.