Description Usage Arguments Value
When renaming the levels of a factor, it is often helpful
to allow the renaming of the NAs themselves. This allows
that, in combination with changeLevels
.
This function converts the NAs to a string "NA", which
then becomes a level of the factor.
1 | naToString(x)
|
x |
A data.frame, containing columns of factors |
The data frame, with the NAs converted to strings "NA"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.