Description Usage Arguments Value
convertFactor
converts factored/character vectors into a data frame of indicators, with the reference group being the largest.
1 | convertFactor(x, name, ref = NULL)
|
x |
Vector of string or factors |
name |
Name of vector supplied |
ref |
Group to be considered reference. If NULL, then the largest group will be set as the reference. |
convertFactor
returns a data frame with indicators for each of the factored groups.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.