Description Usage Arguments Details Value
View source: R/Data_Mgt_Functions.R
The function converts a factor variable into a set of dummy codes then adds them to the data frame on which it operates.
1 |
x |
A data frame containing the factor varable to be dummy coded. |
y |
The factor to be recoded. |
stem |
A character value for the stem of the variable names for the resulting dummy codes. |
=============================================================================
Each level of the factor will be turned into a new binary variable in the data frame x with a name of the form stem_level.
An updated data frame containing the new dummy-coded variables.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.