Description Usage Arguments Details Value See Also Examples
Replaces NA
s by a constant
1 | na_constant(x, value)
|
x |
vector; of values to have the NA replaced with |
value; |
single value to replace |
Replaces NA
values in the supplied vector with a default,
value
.
x
with NA
s replaced by value
.
na_replace
na_zero
- a special case
1 | na_constant( c(1,NA,2), -1 )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.