mapTrts {SEERaBomb}R Documentation

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.

Note

This function is used by mkSEER when it generates merged R binaries. It is exposed to state the default definition of trt and, by way of example, to show how to override it.

Author(s)

Tom Radivoyevitch (radivot@ccf.org)

See Also

SEERaBomb-package, mapTrts

Examples

library(SEERaBomb)
mapTrts # exposes default definition of trt

[Package SEERaBomb version 2019.2 Index]