bin_cont_var | R Documentation |
Transform numeric vector into discrete bins
bin_cont_var(VAR, NUM_GROUPS, ROUND = 3, binNUM = FALSE)
VAR |
A numeric vector of values to bin |
NUM_GROUPS |
A positive integer for the number of bins |
ROUND |
A nonnegative integer for displaying bin labels through binned intervals |
binNUM |
Boolean set to TRUE to map bins to numbers. Otherwise, bins are characterized by intervals |
A character or integer vector of collapsed/binned values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.