na_share | R Documentation |
Returns share of NA values in vector by wrapping sum(is.na(x)) / length(x)
and rounding the result
na_share(x, round = 2)
x |
Vector |
round |
Number of digits to round result to |
x <- c(NA, 1, 2)
na_share(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.