EFdiscretization {linkspotter}R Documentation

EF: Equal-Frequency discretization

Description

Discretize a quantitative variable with equal frequency binning if possible

Usage

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

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


[Package linkspotter version 1.3.0 Index]