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