Description Usage Arguments Value Examples
View source: R/factor_functions.R
Converts a logical vector to a factor conatining two levels. This is useful in statistical models such as logistic regression, both for the dependent variable and the explanatory variables.
1 |
bool |
A logical vector, or a vector that can be coerced to logical. |
levels |
Two factor levels for FALSE and TRUE values, respectively. |
A factor with two levels.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.