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