applyCut | R Documentation |
Applies cut points to vector.
applyCut(col, cuts, infinite_bounds, labels)
col |
input vector with data. |
cuts |
vector with cutpoints.
There are several special values defined:
|
infinite_bounds |
a logical indicating how the bounds on the extremes should look like.
If set to |
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. |
Vector with discretized data.
applyCuts
applyCut(datasets::iris[[1]], c(3,6), TRUE, TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.