ropensci / coder

Classification of Cases into Deterministic Categories
https://docs.ropensci.org/coder/
22 stars 4 forks source link

Recommended workflow for data in a single table #149

Closed rbratslaver closed 3 years ago

rbratslaver commented 3 years ago

Hi - thanks for developing this awesome package! I just wanted to confirm the proper usage if my data is in a single table i.e. let's say my starting point is df, how would I go about obtaining the same result from the readme example? Ty!

df<-coder::ex_icd10 %>% left_join(coder::ex_people)

result from readme:

ch <- categorize( ex_people, # patients of interest codedata = ex_icd10, # Medical codes from national patient register cc = "charlson", # Calculate Charlson comorbidity id = "name", code = "icd10" # Specify column names )

rbratslaver commented 3 years ago

Figured it out, closing.

eribul commented 3 years ago

Thank you very much @rbratslaver I am very happy to hear that you find the package to be useful!