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