qcut | R Documentation |
Bin a numeric vector by quantiles
qcut(x, nbreaks, ...) rangecut(x, nbreaks, ...)
x |
numeric vector |
nbreaks |
number of 'quantile' bins to return. defaults to 4 |
... |
other arguments passed to cut |
quantile factor-vector the same size as x
rangecut
: use bins that each span an equal portion of the range
qcut(runif(100), 10, ordered_result = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.