powered by
Quantile for Ordered Factors
# S3 method for ordered quantile(x, probs = seq(0, 1, 0.25), ...)
ordered factor levels at the desired quantiles
an ordered factor
the desired quatiles
arugments passed on
quantile(ordered(rep(c("C","B","A"), each=30), levels=c("C","B","A")), probs <- seq(0, 1, 0.25))
Run the code above in your browser using DataLab