View source: R/cut_functions.R
cut_at | R Documentation |
Cut a vector at breakpoints defined by quantiles
cut_at(x, at, ...)
x |
A numeric vector. |
at |
The quantiles at which to break x (defined either in the range 0-100 or 0-1). |
... |
other arguments passed to |
An ordered factor, dividing x at the quantiles given by at
. Labels are of the form (e.g.) "0-25%", "25-33%"...
cut_into_n
cut_at(100:1, c(25, 75))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.