Description Usage Arguments Value Author(s) See Also Examples
Convert NAs to Zero in a vector
1 | na.is.zero(X)
|
X |
Vector with NAs in it |
Returns the same vector with zero's instead of NA's
Subhrangshu Nandi, PhD Statistics, UW Madison; snandi@wisc.edu or nands31@gmail.com
1 2 | vector <- c(2, 3, 5, NA, 1)
na.is.zero(vector)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.