powered by
Converts a numeric vector into an ordered factor with three levels (low, medium, high) using deterministic percent ranks to break ties.
disc_terciles(x)
An ordered factor with levels "low", "medium", "high".
Numeric vector to discretize.
x <- c(1, 2, 3, 4, 5, 6, 7, 8, 9) disc_terciles(x)
Run the code above in your browser using DataLab