applyCutPts: Determine bins by applying a vector of cutpoints

View source: R/applyCutPts.R

applyCutPtsR Documentation

Determine bins by applying a vector of cutpoints

Description

Function to determine bins by applying a vector of cutpoints.

Usage

applyCutPts(
  zs,
  cutpts = seq(from = 25, to = 185, by = 5),
  truncate.low = TRUE,
  truncate.high = FALSE
)

Arguments

zs
  • the vector to apply cutpoints to

cutpts
  • vector of cutpoints

truncate.low
  • flag to truncate below first cutpoint (i.e., cutpt[1]<-0)

truncate.high
  • flag to truncate above last cutpoint (i.e., cutpt[last]<-Inf)

Details

None.

Value

a vector with values aligned to the left cutpoints


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