powered by
Determine if a vector is binomial or not
is.binomial(x, threshold = NA)
a Boolean: TRUE / FALSE
Vector to determine type of
The upper threshold of unique values for which a vector is considered categorical.
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)
Run the code above in your browser using DataLab