Classify values into groups based on which numbers they're between.
Usage
between(x, chunks)
Arguments
x
Numeric vector to classify
chunks
Vector listing what values the grouping should be done on. Should include the max and the min in this list as well.
Value
Vector of length(x) indicating which group each element is in (for between). Or vector of length(x) indicating the lower bound of the group that it is in.