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

85 fix error when input has labelled class #119

Closed guoyi-smh closed 2 months ago

guoyi-smh commented 2 months ago

This PR closes #85

After further investigation, the error was due to label() in table1() masked by Hmisc::label(), you can find the details in this comment. Since Hmisc is a widely used package for EDA, in case others will encounter similar issue.

wankiewiczm-smh commented 2 months ago

Used the updated code and found no issues when creating a table1. I also loaded the Hmisc package and used the incorrect label function, table1 still rendered as expected.

Everything works fine on my end, great work @guoyi-smh!

guoyi-smh commented 2 months ago

Thank you Matthew for reviewing and testing!