discretize: A discretize Function

Description Usage Arguments Value Author(s) Examples

View source: R/discretize.R

Description

'discretize' function performs a basic discretization using binning.

Usage

1
discretize(x, no.bin = 5)

Arguments

x

Data frame.

no.bin

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.

Value

Return the discretized data

Author(s)

Saisakul Chernbumroong

Examples

1
2
data(iris)
iris.bin = discretize(iris, no.bin = 5)

mdapack documentation built on July 1, 2020, 10:30 p.m.