percentTrue | R Documentation |
percentTrue
computes the percentual ratio of
TRUE
cases
percentTrue(x, digits = NULL,
...)
x |
a logical vector (or a vector that can be coerced to one) |
digits |
number of decimal places (passed to |
... |
additional arguments passed to |
Percentual ratio of TRUE
cases of x
.
Tomas Sieger
percentTrue(c(TRUE, TRUE, TRUE))
percentTrue(c(TRUE, FALSE, FALSE), digits = 1)
percentTrue(c(FALSE))
percentTrue(NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.