discretizeUnsupervised: Unsupervised Discretization
Description
Discretizes provided numeric vector.
Usage
discretizeUnsupervised(
data,
labels = FALSE,
infinite_bounds = FALSE,
categories = 3,
method = "cluster"
)
Value
Discretized data. If there was no discretization specified for some columns, these are returned as is.
Arguments
- data
input numeric vector.
- labels
a logical indicating whether the bins of the discretized data should be represented by integer codes or as interval notation using (a;b] when set to TRUE.
- infinite_bounds
a logical indicating how the bounds on the extremes should look like.
- categories
number of categories (bins) to produce.
- method
clustering method, one of "interval" (equal interval width), "frequency" (equal frequency), "cluster" (k-means clustering). See also documentation of the discretize
function from the arules package.
Examples
Run this code discretizeUnsupervised(datasets::iris[[1]])
Run the code above in your browser using DataLab