Description Usage Arguments Value Examples
This function creates an indicador variable for each category of the selected variables that belong to classes factor or character. Variables are selected using a regular expression. The user can choose to keep all categories or to drop the reference category. The new indicathor variables are named with the category label/value - only alpha-numerical characters are kept, and all accents are removed. Empty categories (i.e. factor levels that are defined but not used) are dropped.
1 |
df |
The dataframe containing the variables to be recoded. |
reg.exp |
A regular expression identifying the variables that should be analysed. |
keep_all |
If |
A (dataframe) contaning only the dummy variables that were created.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.