xtile function

Split a numeric variable into a number of bins and return a vector of bin numbers