vc_null | R Documentation |
Checks For Null Elements In Vector
vc_null(data, x, prop.acceptable = 0, missing = c("", "NULL"), 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("NULL", rep(LETTERS[1:10])), 10000, TRUE)) vc_null(dat, 'x') vc_null(dat, 'x', prop.acceptable = .1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.