Description Usage Arguments Value See Also
View source: R/createDummyFeatures.R
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.
1 2 | createDummyFeatures(obj, target = character(0L), method = "1-of-n",
cols = NULL)
|
obj |
[ |
target |
[ |
method |
[
Default is ā1-of-nā. |
cols |
[ |
[data.frame
| Task
]. Same type as obj
.
Other eda_and_preprocess: capLargeValues
,
dropFeatures
,
mergeSmallFactorLevels
,
normalizeFeatures
,
removeConstantFeatures
,
summarizeColumns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.