histgroup_iarc: Create variable for groups of malignant neoplasms considered...

View source: R/histgroups_iarc.R

histgroup_iarcR 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 version = "3.1" for ICD-O-3 revision 1, released 2013.

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) 
                

marianschmidt/msSPChelpR documentation built on Feb. 1, 2024, 6:45 a.m.