bin_vector | R Documentation |
A generic and several implementations for binning vectors.
bin_vector(x, weight = NULL, ...)
## S3 method for class 'numeric'
bin_vector(
x,
weight = NULL,
...,
width = 1,
origin = 0,
closed = c("right", "left"),
pad = FALSE
)
x |
A vector to bin |
weight |
If specified, an integer vector of the same length as |
... |
additional arguments passed through to methods. |
width |
The width of a bin |
origin |
The left-most value for bins. |
closed |
One of |
pad |
A logical indicating whether the bins should be padded to include an empty bin on each side. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.