powered by
Reduce the levels of an ordered factor.
# S3 method for ordered cut(x, breaks, ...)
An ordered factor.
an ordered factor.
a logical, character, or index vector of cut points.
further (unused) arguments.
Christian Buchta
If breaks is of class logical it must have the same length as the number of levels of x.
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.
Functions Missing in R: A Never Ending Story ;-)
cut for converting numeric vectors to factor.
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