getBinInfo: Gets the lower and upper limit and index of a tsd bin

Description Usage Arguments Value Author(s) See Also Examples

View source: R/getBinInfo.R

Description

Extract time since diagnosis (tsd) interval information in strings produced by cut.

Usage

1
getBinInfo(binLab, binS)

Arguments

binLab

The label of the specific bin of interest.

binS

The character vector of bin labels in which binLab exists.

Value

A numeric vector containting the lower limit (LL), upper limit (UL), and position (index) in the parent vector binS.

Author(s)

Tom Radivoyevitch (radivot@ccf.org)

See Also

SEERaBomb-package

Examples

1
2
3
4
library(SEERaBomb)
brks=c(0,0.25,1,3,5)  
(binS=levels(cut(brks+0.1,breaks=c(brks,100)))) #make a vector of intervals 
getBinInfo(binS[4],binS) # test getBinInfo

SEERaBomb documentation built on Dec. 16, 2019, 1:21 a.m.