match_ctc: Match CTCAE codes

View source: R/utils2.R

match_ctcR Documentation

Match CTCAE codes

Description

Convenience function to convert CTCAE (version 3 or 4) toxicity codes or descriptions with their appropriate matches. Especially useful in data from paper trials where only the toxicity codes are reported excluding (the more meaningful) descriptions.

Usage

match_ctc(..., version = 4L)

Arguments

...

character string(s) of toxicity codes (usually of the form AB123 but can handle AB-123 or AB 123) or keyword(s) to be matched in the toxicity description

version

version number; default is CTCAE v4

Value

A data frame of matches with toxicity codes, descriptions, and categories corresponding to the CTCAE version used.

The version is stored as an attribute, attr(., "version").

Examples

codes <- sample(rawr::ctcae_v4$tox_code, 10)
match_ctc(codes)

match_ctc('injury', version = 3L)
match_ctc('aortic', 'arterial')


raredd/rawr documentation built on March 4, 2024, 1:36 a.m.