EFdiscretization: EF: Equal-Frequency discretization

Description Usage Arguments Value Examples

View source: R/EFdiscretization.R

Description

Discretize a quantitative variable with equal frequency binning if possible

Usage

1
EFdiscretization(continuousX, nX, nbdigitsX = 3)

Arguments

continuousX

a vector of numeric.

nX

an integer corresponding to the desired number of intervals.

nbdigitsX

number of significant digits to use in constructing levels. Default is 3.

Value

a factor.

Examples

1
2
3
data(iris)
disc.Sepal.Length=EFdiscretization(iris$Sepal.Length,5)
summary(disc.Sepal.Length)

linkspotter documentation built on July 23, 2020, 5:08 p.m.