powered by
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)
A named list of values and freq whose length is bins.
values
freq
bins
A numeric vector of a data set.
A positive integer to represent the number of bins.
base::rle()
rlst <- databinning(mix2gauss$n200)
Run the code above in your browser using DataLab