R/createDummyFeatures.R
createDummyFeatures.Rd
Replace all factor features with their dummy variables. Internally model.matrix is used. Non factor features will be left untouched and passed to the result.
createDummyFeatures( obj, target = character(0L), method = "1-of-n", cols = NULL )
obj | (data.frame | Task) |
---|---|
target | ( |
method | (
Default is “1-of-n”. |
cols | (character) |
data.frame | Task. Same type as obj
.
Other eda_and_preprocess:
capLargeValues()
,
dropFeatures()
,
mergeSmallFactorLevels()
,
normalizeFeatures()
,
removeConstantFeatures()
,
summarizeColumns()
,
summarizeLevels()