na_score | R Documentation |
na_score() computes a count of missings across a given set of variables in a row wise manner
na_score(data, var_txt)
x , y , z |
are set of variables from a data frame (i.e. a selection of numeric columns) |
simple wrapper to produce row wise sums (default is na.rm=TRUE)
a numeric vector
library(dplyr)
data_frame %>%
mutate(na_count = na_score(data = ., var_txt = c('x', 'z', 'y')))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.