GEMINI-Medicine / Rgemini

A custom R package that provides a variety of functions to perform data analyses with GEMINI data
https://gemini-medicine.github.io/Rgemini/
Other
3 stars 0 forks source link

[BUG]: frailty_score does not return 0 #128

Closed gemini-wenb closed 2 months ago

gemini-wenb commented 2 months ago

Please identify the affected function:

frailty_score()

The function calculates frailty score as expected, and assigns 0 to encounters without any frailty condition correctly. However, at the step of returning results, it returns the data frame without the encounters with score=0, instead of the one with all rows combined.

An easy fix to this is as below: image