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

dplyr::summarise is depreceated #45

Merged
merged 1 commit into from Feb 13, 2024
Merged

Conversation

oyvindbso
Copy link
Contributor

dplyr has depreceated use of summarise when it returns more or less than one row per group. I switched to reframe as dplyr suggests. reframe returns an ungrouped table but I don't that is a problem here (?)

Codebookr returns a warning now:
Warning message:
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.

dplyr has depreceated use of summarise when it returns more or less than one row per group. I switched to reframe as dplyr suggests. reframe returns an ungrouped table but I don't that is a problem here (?)

Codebookr returns a warning now:
Warning message:
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.
@mbcann01
Copy link
Member

Thank you for bringing this to my attention! I'll take a look as soon as I can.

@mbcann01 mbcann01 merged commit 88712f6 into brad-cannell:master Feb 13, 2024
This was referenced Feb 13, 2024
mbcann01 added a commit that referenced this pull request Feb 13, 2024
* Fix dplyr warning, "Warning: Returning more (or less) than 1 row per `summarise()` group was deprecated in
dplyr 1.1.0. Please use `reframe()` instead." (#45)

* Fix dplyr warning, "The `...` argument of `across()` is deprecated as of dplyr 1.1.0. Supply arguments directly to `.fns` through an anonymous function instead."
mbcann01 added a commit that referenced this pull request Feb 13, 2024
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.

None yet

2 participants