discretizeUnsupervised {arc} | R Documentation |
Unsupervised Discretization
Description
Discretizes provided numeric vector.
Usage
discretizeUnsupervised(
data,
labels = FALSE,
infinite_bounds = FALSE,
categories = 3,
method = "cluster"
)
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 |
Value
Discretized data. If there was no discretization specified for some columns, these are returned as is.
Examples
discretizeUnsupervised(datasets::iris[[1]])
[Package arc version 1.4 Index]