code_to_term(code = "C174106", clst_code = "C141657")
# Both `code` and `clst_code` are vectorized. `clst_code` will be recycled
# to match `code` number of elements.
code_to_term(code = c("C174106", "C141700"), clst_code = "C141657")
# You may mix codelists as long as `code` and `clst_code` have the same
# number of elements; they will be matched element-wise.
code_to_term(
code = c("C174106", "C141700", "C141701"),
clst_code = c("C141657", "C141657", "C141656")
)
# Invalid codes (e.g. `"C00000"`) map to `NA`.
code_to_term(code = c("C174106", "C141700", "C00000"), clst_code = "C141657")
Run the code above in your browser using DataLab