Comorbidities calculator for R using ICD-9 and ICD-10 based scores