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

Warning for deprecated in dplyr 1.1.0. in pairwise_comparisons.R #98

Open
lemireg opened this issue Nov 19, 2024 · 0 comments
Open

Warning for deprecated in dplyr 1.1.0. in pairwise_comparisons.R #98

lemireg opened this issue Nov 19, 2024 · 0 comments

Comments

@lemireg
Copy link

lemireg commented Nov 19, 2024

Throws Warning when running "timepoint comparison" in BAMA example of pairwise_test_cont()

Warning: Returning more (or less) than 1 row per `summarise()` group was deprecated in dplyr 1.1.0.
Please use `reframe()` instead.
When switching from `summarise()` to `reframe()`, remember that `reframe()` always returns an ungrouped data frame and adjust accordingly.

returned when running the below :

timepoint_testing_dt <- exampleData_BAMA %>%
                       group_by(antigen, group) %>%
                       summarise(pairwise_test_cont(x = magnitude,
                                                   group = visitno,
                                                   paired = TRUE,
                                                   id = pubID,
                                                   method = 'wilcox',
                                                   sorted_group = c(0,1,2),
                                                   alternative = 'less',
                                                   num_needed_for_test = 3,
                                                   digits = 3,
                                                   trailing_zeros = TRUE,
                                                   sep_val = ' vs. ',
                                                   verbose = TRUE),
                                 .groups = "keep")

located at:
https://github.com/FredHutch/VISCfunctions/blob/1a896ccf7fb3124ad1bea9e93a0726fff2640b70/R/pairwise_comparisons.R#L101

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

No branches or pull requests

1 participant