Learn R Programming

tornado (version 0.1.3)

quantile.ordered: Quantile for Ordered Factors

Description

Quantile for Ordered Factors

Usage

# S3 method for ordered
quantile(x, probs = seq(0, 1, 0.25), ...)

Value

ordered factor levels at the desired quantiles

Arguments

x

an ordered factor

probs

the desired quatiles

...

arugments passed on

Examples

Run this code
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