| nona | R Documentation |
Classifies NAs as observed don't know responses by default. If NAs represent structural missingness, they can instead be omitted or rejected.
nona(
vec = NULL,
na_as = c("dk", "missing"),
missing_action = c("omit", "error")
)
vec |
Required. Character or numeric vector. |
na_as |
Classification of NA responses: '"dk"' (the default) or '"missing"'. |
missing_action |
How to handle structural missingness: '"omit"' or '"error"'. |
Character vector.
x <- c(NA, 1, 0)
nona(x)
x <- c(NA, "dk", 0)
nona(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.