myfrac | R Documentation |
Print the fraction of TRUEs in a vector of logicals
myfrac(vec)
vec |
Vector of logicals |
Fraction of TRUE values in vec
set.seed(123)
myfrac(rnorm(10) > 0)
myfrac(TRUE)
myfrac(FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.