'discretize' function performs a basic discretization using binning.
discretize(x, no.bin = 5)
Data frame.
Number of bin. 'FD' to use the Freedman-Diaconis rule for identifying number of bins. The number of bin is 'max-min/2*IQR*n^-(1/3)'. 'ThreeStage' to discretize data into three stages. 1 if data is more than mu+sigma/2; 0=-1 if data is less than mu - sigma/2; otherwise 0.
Return the discretized data
# NOT RUN {
data(iris)
iris.bin = discretize(iris, no.bin = 5)
# }
Run the code above in your browser using DataLab