powered by
## S3 method for class 'ordered': cut(x, breaks, ...)
breaks
logical
x
If breaks is of class character partial matching with the levels of x is attempted.
character
Otherwise breaks is assumed to index the levels.
cut
x <- ordered(sample(letters[1:3],10,rep=TRUE)) cut(x, c(FALSE,TRUE,FALSE)) cut(x, "b") cut(x, 2)
Run the code above in your browser using DataLab