View source: R/compile-typing.R
is.binomial | R Documentation |
Determine if a vector is binomial or not
is.binomial(x, threshold = NA)
x |
Vector to determine type of |
threshold |
The upper threshold of unique values for which a vector is considered categorical. |
a Boolean: TRUE / FALSE
is.binomial(c(1,2,3)) is.binomial(factor(c("A","B","C"))) is.binomial(factor(c("A","B","B","A"))) is.binomial(factor(c(TRUE, FALSE, TRUE, FALSE))) is.binomial(c('M', 'F', 'M', 'F'), 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.