View source: R/createDummyFeatures.R
createDummyFeatures | R Documentation |
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.