mapTrts: Map treatment codes to factor

Description Usage Arguments Value Note Author(s) See Also Examples

View source: R/mapTrts.R

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

1

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

1
2
library(SEERaBomb)
mapTrts # exposes default definition of trt

SEERaBomb documentation built on Dec. 16, 2019, 1:21 a.m.