bin: Binning

View source: R/utils-bin.R

binR Documentation

Binning

Description

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

Usage

bin(x, binWidth, viewport, stringsAsFactors)

Arguments

x

Numeric or Date vector to bin

binWidth

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

viewport

List of min and max values to consider as the range of data

stringsAsFactors

logical indicating whether a factor or character vector should be returned

Value

Character vector (or factor) of coded values


VEuPathDB/plot.data documentation built on Feb. 20, 2025, 6:33 p.m.