NA_to_X | R Documentation |
NA
to specified valueReplace NA
values in a vector with a specified value.
NA_to_X(x, replacement)
x |
A vector |
replacement |
The value to replace |
A vector of the same length as x
c(1, 2, 3, 4) %>% NA_to_X(3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.