| cut.integer {rccmisc} | R Documentation |
S3-method for cut applied to integer vectors where all outcome factors are integer intervals.
## S3 method for class 'integer' cut(x, ...)
x |
integer vector |
... |
further arguments passed to or from other methods |
If cut.default(x, ...) returns only intger intervals, these are
formated in a more natural way and returned as an ordered factor.
If non integer interval limits occur, the output of cut.default(x, ...) is retured as is.
cut.default(1:100, seq(0, 100, 20)) # Gives a quite unnatural output cut(1:100, seq(0, 100, 20)) # Gives nicer and ordered output cut(1:10, 3) # no integer intervals and therefor same as cut.default