Cut a quantitative variable in equal parts
Cuts a quantitative variable in equal parts
cut_quanti(x, n, ...)
x
: a numeric vectorn
: numeric, the number of parts: 2 to cut according to the median, and so on......
: other arguments to be passed in cut
A factor vector
cut_quanti(cgd$height, 3)
Hugo Varet
Useful links