Description Usage Arguments Value Author(s) Examples
View source: R/encodeProportion.R
Encodes categorical features using the proportional approach
1 | encodeProportion(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 <- encodeProportion(x = iris, catFeats = "Species")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.