Learn R Programming

SEERaBomb (version 2015.2)

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

Description

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

Usage

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.

See Also

SEERaBomb-package

Examples

Run this code
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

Run the code above in your browser using DataLab