summ_na | R Documentation |
Count Missing and % of Total
summ_na(
x,
digits = 1,
incl_denom = F,
out = c("percentage", "percent"),
zero2dash = T
)
x |
Vector |
digits |
Number of decimal points to round to |
incl_denom |
logical for inclusion of denominator in frequency |
out |
return percent or percentage |
zero2dash |
automatically change '0 (0)' to '-' |
N (%) of Number missing
x = 1:100
ind = sample(1:100, 10, replace = F)
x[ind] = NA
summ_na(x, out = "percent")
summ_na(x, out = "percentage")
x = 1:200
summ_na(x)
x[ind] = NA
summ_na(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.