Description Usage Arguments Value Examples
Takes a vector and calculates the percent of values that are NA
1 |
x |
Vetor of values |
Percent of values in x that are NA
1 2 3 4 5 6 | percent_empty(c(1,2,NA,4))
# Use with purrr to test columns in matrix, dataframe etc.
nadf <- data.frame(x = rep(NA, 3), y = c(1, 2, NA))
purrr::map_dbl(nadf, ~ percent_empty(.))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.