View source: R/cut_functions.R
cut_into_n | R Documentation |
Cut a vector into n equal parts
cut_into_n(x, n, labels = paste0(1:n, "of", n), ...)
x |
A numeric vector. |
n |
The number of equal sized parts. |
labels |
Labels for the factor passed to |
... |
other arguments passed to |
An ordered factor, dividing x in to n-ths, with default values "1ofn" < "2ofn", < ... < "nofn"
cut_at
cut_into_n(100:1, 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.