Description Usage Arguments Value Examples
Function to convert all NAs in a vector to a specified value
1 | na_to_value(vec, val = "")
|
vec |
vector that potentially has NAs |
val |
value to replace NAs with |
vector with no NAs
1 | na_to_value(c(1:5, NA, 7:10), 6)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.