Description Usage Arguments Examples
View source: R/utility_functions.R
Convert Categorical Data to Dummy Variables
1 | dummy_convert(dataset,column_names)
|
dataset |
Data frame that contains the categorical columns |
column_names |
A list of column names that need to be converted to dummy variables. |
1 2 3 | x<-data.frame(trt=as.factor(rbinom(100,1,0.5)), Gender=as.factor(rbinom(100,1,0.5)))
dummy_convert(x,c("trt","Gender"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.