getBinInfo {SEERaBomb} | R Documentation |
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.
Author(s)
Tom Radivoyevitch (radivot@ccf.org)
See Also
Examples
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
[Package SEERaBomb version 2019.2 Index]