Closed Flora-love-cat closed 2 years ago
Hi,
I suspect you are following the code tutorial for the latest version of {comorbidity}, but have a previous one (where the score()
function did not exist). I would suggest trying to update.packages(ask = F)
all your packages and try again, hopefully it is a simple fix!
thanks, it fixed my issues. I didn't realize the package was updated before!
No worries, glad to hear it is now sorted!
When I tried to calculate the Charlson score by the following code in tutorial, it prompted
Error in score(charlson, weights = NULL, assign0 = FALSE) : could not find function "score"
. I wonder if the unweighted score calculated byscore
function is same as thescore
column inCharlson
table?