Description Usage Arguments Examples
Recode all NA values into missing in a data.frame of factors
1 | na.to.missing(x, convert.to.factor = FALSE, missing.value = "MISSING")
|
x |
is a data.frame of factors |
convert.to.factor |
if TRUE all non-factor columns in x are converted to factors |
missing.value |
is the new value given to the NA values |
1 2 3 | x <- as.data.frame(matrix(rep(c("a", "b", "c", NA), 3), ncol=3))
x
na.to.missing(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.