| na.zero | R Documentation |
Replace NA values with zero
na.zero(x)
x |
A vector. |
A vector with NAs replaced by zeros.
na.zero(c(NA, 1, NA, 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.