-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add group by option to summary.pop_data() #136
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall; see comments.
…CD-SERG/serocalculator into add-group_by-option-to-summary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coming along; please see comments, and please add some unit testing for summary.pop_data()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
coming along; please see notes.
@d-morrison I have renamed the On the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this work! Almost there. Please:
- address the comments below
- review and incorporate this patch: simplify
summary.pop_data()
and associated tests #171
data-raw/typhoid_results.qmd
Outdated
@@ -92,7 +73,10 @@ typhoid_results <- fit %>% | |||
ageCat = NULL, | |||
antigen.iso = paste(collapse = "+", "HlyE_IgG") | |||
) %>% | |||
structure(noise.parameters = cond.hlye.IgG) | |||
structure(noise.parameters = noise) | |||
|
|||
usethis::use_data(typhoid_results, internal = TRUE, overwrite = TRUE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try again? works for me.
data-raw/typhoid_results.R
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please replace all manual fixtures with automated snapshots:
https://r-pkgs.org/testing-basics.html#sec-snapshot-tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is done.
simplify `summary.pop_data()` and associated tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there! Please see comments below.
removing sysdata
…CD-SERG/serocalculator into add-group_by-option-to-summary
…CD-SERG/serocalculator into add-group_by-option-to-summary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great - thanks for all your hard work on this PR!
Cheers!!! |
Provide a
strata
argument to thesummary.pop_data()
function to allow result stratification.