Learn R Programming

SEERaBomb (version 2019.2)

mapTrts: Map treatment codes to factor

Description

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.

Usage

mapTrts(D)

Arguments

D

A SEER cancer data frame that includes the field radiatn as a column.

Value

The input data frame with an additional trt column added to its end.

See Also

SEERaBomb-package, mapTrts

Examples

Run this code
# NOT RUN {
library(SEERaBomb)
mapTrts # exposes default definition of trt
# }

Run the code above in your browser using DataLab