Description Usage Arguments Details See Also Examples
Set missing values to an explicit value,
1 | na_explicit(x, .na, ...)
|
x |
object; either atomic or recursive. |
.na |
either a single element list or named vectors; See #Details. |
... |
(used for recursive structures only) a list of name=value or function |
.values |
interface for setting multiple exception value functions. |
object
na_explicit
transforms its input by replacing missing (NA
) values to
the explicit value set by the .na
argument. The default is to use
NA_explicit
na_replace()
but explicitly but works on recursive
It is also intended to be single argument function.
na_replace()
na_implicit()
forcats::fct_explicit_na()
1 2 3 4 5 6 7 | na_explicit( c(1, NA, 3, 4), 0 )
na_explicit( c("A",NA,"c","D" ) )
na_explicit( c("A",NA,"c","D") )
na_explicit( )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.