| disc_terciles | R Documentation |
Converts a numeric vector into an ordered factor with three levels (low, medium, high) using deterministic percent ranks to break ties.
disc_terciles(x)
x |
Numeric vector to discretize. |
An ordered factor with levels "low", "medium", "high".
x <- c(1, 2, 3, 4, 5, 6, 7, 8, 9)
disc_terciles(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.