Description Usage Arguments Value Author(s) Examples
View source: R/encodeOrdinal.R
Encodes categorical features using a ordinal approach where the proportion is first calculated, sorted and then a transformation is applied to the sorted proportions
1 | encodeOrdinal(x, catFeats, autoCode = TRUE)
|
x |
[data.frame | Required] Data.frame containing categorical features |
catFeats |
[character vector | Required] Character vector of categorical features |
autoCode |
[logical | Optional] Should code be generated when running the function |
List containing data.frame with encoded features as well as code when autoCode is TRUE
Xander Horn
1 | temp <- encodeOrdinal(x = iris, catFeats = "Species")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.