histgroup_iarc {msSPChelpR} | R Documentation |
Create variable for groups of malignant neoplasms considered to be histologically 'different' for the purpose of defining multiple tumors, ICD-O-3
Description
Create variable for groups of malignant neoplasms considered to be histologically 'different' for the purpose of defining multiple tumors, ICD-O-3
Usage
histgroup_iarc(df, hist_var, new_var_hist = t_histgroupiarc, version = "3.1")
Arguments
df |
dataframe in long or wide format |
hist_var |
variable in df that contains first 4 digits of tumor histology (without behavior) |
new_var_hist |
Name of the newly calculated variable for histology groups. Default is t_histgroupiarc. |
version |
Version of ICD-O-3 classification used. Can be either "3.0" for 2000 publication, "3.1" for 2013 first revision or "3.2" for 2019 second revision.
Default is |
Value
df
Examples
#load sample data
data("us_second_cancer")
us_second_cancer %>%
msSPChelpR::histgroup_iarc(., hist_var = t_hist) %>%
dplyr::select(fake_id, t_hist, t_histgroupiarc)
[Package msSPChelpR version 0.9.1 Index]