| cut_numeric | R Documentation |
Discretize Continuous Variable into Quantile-Based Categories
cut_numeric(x, probs = c(0.25, 0.5, 0.75))
x |
Numeric vector to discretize |
probs |
Numeric vector of probabilities for quantile breaks. Default: c(0.25, 0.5, 0.75) creates quartiles coded as 1, 2, 3, 4 |
Integer vector with category codes (1 = lowest, max = highest)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.