Learn R Programming

dprep (version 3.0.2)

disc.1r: Discretization using the Holte's 1R method

Description

This function performs supervised discretization using the Holte's 1R method

Usage

disc.1r(data, convar, binsize = 15, out=c("symb","num"))

Arguments

data
The name of the dataset to be discretized
convar
A vector containing the continuous features
binsize
The number of instances per bin
out
To get the discretized dataset in a numerical format write "num". To get the discretized in an interval format write "symb"

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.ew,disc.ef, chiMerge, disc.mentr

Examples

Run this code
#-----Discretization using the Holte's 1r method
data(bupa)
disc.1r(bupa,1:6,out="symb")

Run the code above in your browser using DataLab