View source: R/cut_quartiles.R
cut_quartiles | R Documentation |
Convenient function to quickly cut a numeric vector into quartiles, i.e. by
applying cut(x, breaks = fivenum(x))
. Variable label is preserved by
cut_quartiles()
.
cut_quartiles(x, include.lowest = TRUE, ...)
x |
a numeric vector which is to be converted to a factor by cutting. |
include.lowest |
logical, indicating if an ‘x[i]’ equal to
the lowest (or highest, for |
... |
further arguments passed to |
mtcars$mpg |> cut_quartiles() |> summary()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.