The levels of the returned factor can be named with the labels argument. The following example assigns a (textual) code (low, medium, high) to a (numerical) rating in the range between 0 and 10.
The data frame is used to print the rating and its code side by side:
If the argument labels is set to FALSE, cut does not return a factor but an integer vector (that indicates the bucket or bin of the interval into which a number is assigned):
Distributing the vector's elements into n equally sized intervals
A special case is if the second parameter is a single number (a vector of length 1). In this case, cut will assign the input vector's elements into the specified number of equally sized intervals: