Learn R Programming

sdtm.terminology (version 2025-3-25)

clst_code_to_term: SDTM codelist code to respective term

Description

clst_code_to_term() maps SDTM terminology codelists' C-codes to respective terms. For mapping codes other than those representing codelists, use code_to_term() instead.

Usage

clst_code_to_term(code)

Value

A character vector of SDTM terms for codelists. The number of elements returned matches the number of elements in code, i.e. there is a one-to-one correspondence between input and output. Invalid codes in code are mapped to NA.

Arguments

code

A C-code with a leading character C followed by a sequence of digits used for uniquely identifying each SDTM terminology codelist.

See Also

See clst_term_to_code() for the inverse operation.

Examples

Run this code
clst_code_to_term(code = "C66731")

# `code` is vectorized.
clst_code_to_term(code = c("C66731", "C66733"))

# Invalid codes (e.g. `"C007"`) map to `NA`.
clst_code_to_term(code = c("C66731", "C66733", "C007"))

Run the code above in your browser using DataLab