Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using comorbidity 0.5.3 #76

Closed
sk123-ux opened this issue Jul 12, 2024 · 3 comments
Closed

Using comorbidity 0.5.3 #76

sk123-ux opened this issue Jul 12, 2024 · 3 comments

Comments

@sk123-ux
Copy link

Hello,

I want to use comorbidity 0.5.3 for a particular dataset so I reverted the package to the older version using:

remotes::install_github("ellessenne/comorbidity@0.5.3")

However, when I try to use the older code (which displays the scores and weight scores as part of the mapping function) I encounter an error.

Using newer code with comorbidity 0.5.3 works successfully

com <- comorbidity(x = my_data, id = "SAMDS", code = "Code", map = "charlson_icd10_quan", assign0 = FALSE) View(com)

Using older code with comorbidity 0.5.3 does not work and produces the following error

com <- comorbidity(x = my_data, id = "SAMDS", code = "Code", score = "charlson", icd = "icd10", assign0 = FALSE) View(com)

Error in comorbidity(x = sim_data, id = "SAMDS", code = "Code", score = "charlson", : unused arguments (score = "charlson", icd = "icd10")

Is there still a supported method of using comorbidity version 0.5.3?

@ellessenne
Copy link
Owner

Hi, I cannot reproduce the issue but I suspect it may be enough to just restart your R session before installing the old version. Could you try that?

@sk123-ux
Copy link
Author

Hello, yes it does. Thanks for your work on the package and for helping to fix this simple error.

@ellessenne
Copy link
Owner

That's good to hear, thanks for checking and confirming that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants