Description Usage Arguments Details See Also Examples
Convert to character
1 2 3 4 5 6 7 |
x |
logical vector |
na |
string; value to set for |
true |
string for TRUE value |
false |
string for FALSE value |
as_chr converts x to character. It is smarter versions of
base::as.character().
The default method wraps base::as.character().
The method for logical values allows for mapping TRUE, FALSE and
NA values to
values to Using non-default values fortrueorfalse' results in non-invertible
transformation. (true="T", false="F" is also invertible )
This also allows for setting TRUE or FALSE values to NA
base::as.character() which is a primitive method for which
S3 classes cannot be defined.
na.tools
package for functions that replace and impute NA in vectors.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.