Discretize numeric vector
Splits a numeric vector into intervals.
x (Vector[Number]): | List[Number]
The vector to discretize.
breaks (Int): | Vector[Number]
Number of bins or specific cut points.
Vector of interval labels.
cut([1, 2, 3, 4, 5], 2)
cut([1, 2, 3, 4, 5], [0, 2.5, 5])