executeBinning: Execute binning for numerical data.

Description Usage Arguments Value

View source: R/binning.R

Description

Execute binning for numerical data.

Usage

1
executeBinning(x_vec, breaks = NULL, nbin.max = 100, method = "freq")

Arguments

x_vec

an integer or numeric or ordered vector, to be binned.

breaks

a numeric vector which indicates the boundaries of bins, of length (number of bins - 1). If NULL is set, bins are generated using the method which is specified by the method argument.

nbin.max

a maximum number of bins which is generated by this function. Only used when breaks is not set.

method

used for specifying binning method. "freq": equal freq binning (default), "width": equal width binning. Ignore if breaks is set.

Value

a list which has two members labels and breaks.


kazuzowo/aglm-LVar documentation built on Dec. 10, 2019, 12:13 a.m.