View source: R/datalow_utils.r
countgtzero | R Documentation |
countgtzero is designed to be used within the apply function to count the number of zeros in a vector
countgtzero(invect)
invect |
vector of values |
A single value of zero or the number of zeros
## Not run:
x <- c(1,2,3,4,0,0,0,5,6,7,8) # 8 values > 0
countgtzero(x)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.