col_miss | R Documentation |
Percent of values missing by column
col_miss(df, empty_string = FALSE, numeric_out = FALSE)
df |
A data frame |
empty_string |
Should only white space values be treated as NA? |
numeric_out |
Should the return value be unformatted numbers? |
Likely to be used interactively
Sven Halvorson
set.seed(1)
dat = c('X', 'Y', 'Z', '', NA)
df = tibble::tibble(a = sample(dat, size = 5, replace = TRUE),
b = sample(dat, size = 5, replace = TRUE),
c = sample(dat, size = 5, replace = TRUE))
df
col_miss(df)
col_miss(df, empty_string = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.