bin_integer | R Documentation |
Takes a numeric input vector, groups into bins based on the argument cuts
, and
outputs an ordered factor with appropriate names. Any NAs in the input are optionally grouped
into an explicit NA level with name na_level
bin_integer(x, cuts, na_level = NULL, na_at_end = FALSE)
x |
Integer vector to be binned. |
cuts |
An integer vector giving bin cuts. Don't add |
na_level |
A name for the explicit NA level (if any). If left as the default NULL then no explicit NA level will be formed. |
na_at_end |
Logical indicating whether to put any explicit NA level at the end of the levels. The
default |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.