vc_missing | R Documentation |
Checks For Missing Elements In Vector
vc_missing(data, x, prop.acceptable = 0, missing = c("", "NULL", "NA", "N/A", "na", "n/a"), required = FALSE, ...)
data |
A data frame. |
x |
Column name from |
prop.acceptable |
proportion of allowable missing. |
missing |
values that missing can take. |
required |
whether the vector in the table is required. |
... |
ignored. |
set.seed(10) dat <- data.frame(x = sample(c(NA, rep(LETTERS[1:10])), 10000, TRUE)) vc_missing(dat, 'x') vc_missing(dat, 'x', prop.acceptable = .1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.