Learn R Programming

SEERaBomb (version 2016.1)

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

See Also

SEERaBomb-package, mapTrts

Examples

Run this code
library(SEERaBomb)
mapTrts # exposes default definition of trt

Run the code above in your browser using DataLab