bin: Bin a variable

Description Usage Arguments Details

View source: R/bins.R

Description

Bin a variable

Usage

1
bin(rv, binwidth = NULL, method = "mccrary", signif_digits = 7)

Arguments

rv

running variable to put in bins

binwidth

bin width to use for binning procedure

method

method to use for automatic binning if bw is null

Details

If bw (the bandwidth parameter) is null, rv (the running variable) will be placed into bins based on the automated procedure determined by the method argument. Options currently supported are "mccrary" and "freedman". for details see bw_freedman and bw_mccrary.


be-green/shinyrd documentation built on April 14, 2020, 12:43 a.m.