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

sim_gs_n: combine hetergenous test columns, fill missing with NAs #277

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

jdblischak
Copy link
Collaborator

Follow up to #273. Now that wlr() returns different columns compared to rmst() and milestone() (and thus the outputs are no longer standardized, #222), @LittleBeannie suggested filling the missing columns with NAs (#273 (comment)).

This PR replaces rbind() with data.table::rbindlist() to allow combining test functions that return different functions. I restored the sim_gs_n() tests to confirm this is working.

Note that unfortunately it is still not possible to combine the results of maxcombo() because its z column is a list column. I think I'll be able to get this working, but it will require additional code and tests, so I decided to keep it separate from this PR.

xref: #229, #258

@jdblischak jdblischak self-assigned this Aug 20, 2024
Copy link
Collaborator

@LittleBeannie LittleBeannie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for quickly getting it work!

@LittleBeannie LittleBeannie merged commit 6996055 into Merck:main Aug 20, 2024
7 checks passed
@jdblischak jdblischak deleted the sim-gs-n-het-cols branch August 20, 2024 17:59
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

Successfully merging this pull request may close these issues.

2 participants