I have a dataset and I want to cut it into 4 parts using cut() function (or something similar).
set.seed(5) cut(runif(100, 0, 100), 4)
gives