na.zero | R Documentation |
Sets NAs to zero.
na.zero(x)
x |
A numeric vector. No test that x is numeric. |
Vector of length of x, but with NA's replaced by 0.
na.zero(c(1, NA))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.