Learn R Programming

dprep (version 2.1)

disc.ef: Discretization using the method of equal frequencies

Description

Unsupervised discretization using intervals of equal frequencies

Usage

disc.ef(data, varcon, k)

Arguments

data
The dataset to be discretized
varcon
A vector containing the continuous features
k
The number of intervals to be used

Value

  • Returns a new data matrix with discretized values.

References

Kantardzic M. (2003). Data Mining: Concepts, Models, methods, and Algorithms. John Wiley. New York.

See Also

disc.1r, disc.ew,chiMerge

Examples

Run this code
#Discretization using the equal frequency method
data(bupa)
bupa.disc.ef=disc.ef(bupa,1:6,8)

Run the code above in your browser using DataLab