powered by
Calls the cut function to cut variables on data frame.
qcut(x, cuts = 4, breaks = NULL, ...)
variable to cut
number of groups, 4 gives quartiles
can also give breaks
other argument for cut function of R
# NOT RUN { data(sTRACE) gx <- qcut(sTRACE$age) table(gx) # }
Run the code above in your browser using DataLab