databinning: Reduce a data set to representatives of bins and their...

View source: R/auxiliaries.r

databinningR Documentation

Reduce a data set to representatives of bins and their frequencies

Description

Reduce a data set to a named list of 'values' and 'freq', which are representatives of bins and their frequencies, respectively.

Usage

databinning(data, bins = 40)

Arguments

data

A numeric vector of a data set.

bins

A positive integer to represent the number of bins.

Value

A named list of values and freq whose length is bins.

See Also

base::rle()

Examples

rlst <- databinning(mix2gauss$n200)

dsdp documentation built on Feb. 16, 2023, 8:36 p.m.