databinning | R Documentation |
Reduce a data set to a named list of 'values' and 'freq', which are representatives of bins and their frequencies, respectively.
databinning(data, bins = 40)
data |
A numeric vector of a data set. |
bins |
A positive integer to represent the number of bins. |
A named list of values
and freq
whose length is bins
.
base::rle()
rlst <- databinning(mix2gauss$n200)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.