rebinColumn: Rebin a column in dataframe

View source: R/rebinColumn.R

rebinColumnR Documentation

Rebin a column in dataframe

Description

Rebin a column in a dataframe based on a vector of cutpoints

Usage

rebinColumn(tbl, column = "LENGTH", cutpts = 1:10, binType = c("L", "C", "R"))

Arguments

tbl
  • dataframe to rebin

column
  • name of column to rebin

cutpts
  • left cutpts for the rebinning operation

binType
  • output type for values ('L','C',or 'R' for left, center or right bin values)

Details

None.

Value

list with rebinned dataframe ('tbl'), bins ('bins'), and cutpts ('cutpts') as elements


wStockhausen/wtsUtilities documentation built on March 16, 2024, 10:38 a.m.