powered by
Uses SEER codes in the SEER field radiatn to add a factor named trt with levels "noRad","rad", and "unk" to a cancer data frame.
mapTrts(D)
A SEER cancer data frame that includes the field radiatn as a column.
The input data frame with an additional trt column added to its end.
SEERaBomb-package, mapTrts
# NOT RUN { library(SEERaBomb) mapTrts # exposes default definition of trt # }
Run the code above in your browser using DataLab