Quantile for Ordered Factors
Usage
# S3 method for class 'ordered'
quantile(x, probs = seq(0, 1, 0.25), ...)
Arguments
- x
an ordered factor
- probs
the desired quatiles
- ...
arugments passed on
Value
ordered factor levels at the desired quantiles
Examples
quantile(ordered(rep(c("C","B","A"), each=30), levels=c("C","B","A")),
probs <- seq(0, 1, 0.25))
#> [1] C C B A A
#> Levels: C < B < A