encodeProportion: Proportional encoding of categorical features

Description Usage Arguments Value Author(s) Examples

View source: R/encodeProportion.R

Description

Encodes categorical features using the proportional approach

Usage

1
encodeProportion(x, catFeats, autoCode = TRUE)

Arguments

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

Value

List containing data.frame with encoded features as well as code when autoCode is TRUE

Author(s)

Xander Horn

Examples

1
temp <- encodeProportion(x = iris, catFeats = "Species")

XanderHorn/autoML documentation built on Aug. 5, 2020, 11:45 a.m.