disc.ef: Discretization using the method of equal frequencies

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/disc.ef.R

Description

Unsupervised discretization using intervals of equal frequencies

Usage

1
disc.ef(data, varcon, k,out=c("symb","num"))

Arguments

data

The dataset to be discretized

varcon

A vector containing the continuous features

k

The number of intervals to be used

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.

Author(s)

Edgar Acuna

References

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

See Also

disc.1r, disc.ew,chiMerge

Examples

1
2
3
#Discretization using the equal frequency method
data(bupa)
bupa.disc.ef=disc.ef(bupa,1:6,8,out="symb")

Example output

Warning messages:
1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
2: 'rgl_init' failed, running with rgl.useNULL = TRUE 
3: .onUnload failed in unloadNamespace() for 'rgl', details:
  call: fun(...)
  error: object 'rgl_quit' not found 

 variables to be discretized: 1 2 3 4 5 

dprep documentation built on May 29, 2017, 11:01 a.m.