bin: Binning

Description Usage Arguments Value

View source: R/utils.R

Description

This function divides the range of ‘x’ into intervals and codes the values in ‘x’ according to which interval they fall

Usage

1
bin(x, binWidth)

Arguments

x

Numeric or Date vector to bin

binWidth

number to increment bin bounds by, or string for dates ex: 'month'

Value

Character vector of coded values


d-callan/plot.data documentation built on Jan. 27, 2021, 8:37 a.m.