Classify ICD-O-3 morphology codes into categories

classify_morp(x)

Arguments

x

Character vector of ICD-O-3 morphology codes. Values not present in the internal dictionary will be returned as NA.

Value

Character vector of categories corresponding to x.

Examples

morps <- c("8140","8070","8050","8051","9900","9800","9993")
classify_morp(morps)
#> [1] "3"  "1"  "5"  "1"  NA   "14" NA