View source: R/calculate-bins.R
calculate_bins | R Documentation |
An internal function (ie, that's not currently exposed/exported outside the package) for creating default bins for dataset variables.
calculate_bins(d_observed, bin_count_suggestion = 30L)
d_observed |
The |
bin_count_suggestion |
An |
Returns a list
, with two elements. Each element is an array with as many values as columns in d_observed
.
bin_width
The variable name (in d_observed
).
bin_start
The variable's class
. (eg, numeric, Date, factor)
#calculate_bins(d_observed=datasets::freeny)
#calculate_bins(d_observed=datasets::InsectSprays)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.