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

Round out dplyr&tidyr functionality for grouped epi_dfs #310

Draft
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

brookslogan
Copy link
Contributor

This is a work in progress and is currently buggy. See related thread around this comment for bugs and potential ways forward.

Motivation:
* In the current `c("epi_df", "grouped_df", "tbl_df", "tbl", "data.frame")`
  approach without many `epi_df` methods, there are several `grouped_df` methods
  that will drop the `epi_df` class.
* `tbl_sum.grouped_df` expects `grouped_df` to be in front / a subclass of the
  "base" class for ungrouped data.

So move to make grouped `epi_df`s have class vector `c("grouped_edf",
"grouped_df", "epi_df", "tbl_df", "tbl", "data.frame")`, and implement a handful
of methods for `grouped_edf` to try to keep around `epi_df`-ness and
`grouped_edf`-ness when appropriate. Replace `reclass` with multiple similar
functions to facilitate this change.
@brookslogan brookslogan changed the base branch from dev to lcb/make_epix_slide_more_like_reframe May 4, 2023 17:10
@brookslogan
Copy link
Contributor Author

  • address problems/todos already identified in linked issue
  • check on decay_epi_df; this should also drop grouped_edf

Base automatically changed from lcb/make_epix_slide_more_like_reframe to dev May 30, 2023 19:09
@brookslogan brookslogan changed the base branch from dev-0.6.0.9999 to main November 15, 2023 23:51
@dsweber2 dsweber2 added this to the Epiprocess Issue Triage milestone Dec 6, 2023
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.

3 participants