| adjust_class_label | R Documentation |
One‑hot encode a factor vector into a matrix of indicator columns.
adjust_class_label(x, valTrue = 1, valFalse = 0)
x |
vector to be categorized |
valTrue |
value to represent true |
valFalse |
value to represent false |
Values are mapped to valTrue/valFalse (default 1/0). The resulting matrix has column names equal to levels(x).
returns an adjusted categorical mapping
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.