Description Usage Arguments Details Examples
Convenience method for returning a copy of a vector such that NA values are substituted with a replacement value
1 | replace_na(x, repl = "auto")
|
x |
vector of values |
repl |
what to substitute in place of NAs |
Returns a copy of x
such that NAs get replaced with a replacement value. Default replacement value is 0.
1 | replace_na(c(1, NA, 1, 0))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.