View source: R/utils-numeric.R
getDiscretizedBins | R Documentation |
This function will find bin start, end and labels for a continuous variable. Optionally, it can return a value/ count per bin. By default returns 10 bins for equalRanges and quantile methods and 6 for sd (standard deviations).
getDiscretizedBins(
x,
method = c("equalInterval", "quantile", "sd"),
numBins = NULL,
getValue = c(TRUE, FALSE)
)
x |
Numeric (or Date) vector to find bins for |
method |
A string indicating which method to use to find bins ('equalRanges', 'quantile', 'sd') |
numBins |
A number indicating how many bins are desired |
getValue |
A boolean indicating whether to return the counts per bin |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.