qcut | R Documentation |
Calls the cut function to cut variables on data frame.
qcut(x, cuts = 4, breaks = NULL, ...)
x |
variable to cut |
cuts |
number of groups, 4 gives quartiles |
breaks |
can also give breaks |
... |
other argument for cut function of R |
Thomas Scheike
data(sTRACE)
gx <- qcut(sTRACE$age)
table(gx)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.