arlc_replace_na | R Documentation |
This function replaces NA values in a vector or data frame with a specified value.
arlc_replace_na(x, value)
x |
A vector or data frame. |
value |
The value to replace NA with. |
The vector or data frame with NA values replaced.
arlc_replace_na(c(1, NA, 3), 0)
arlc_replace_na(data.frame(a = c(1, NA, 3), b = c(NA, NA, 3)), 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.