countNAs | R Documentation |
countNAs used in apply to count number of NAs in a vector
countNAs(invect)
invect |
vector of values |
A single value of zero or the number of NAs
## Not run:
set.seed(12346)
x <- trunc(runif(10)*10)
x[c(3,7)] <- NA
countNAs(x) # should be 2
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.