-
Notifications
You must be signed in to change notification settings - Fork 8
Create a rename()
function that is more specialized for an epi_df
#195
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
Labels
P2
low priority
Comments
rename()
rename()
function that is more specialized for an epi_df
Related: #223. |
brookslogan
pushed a commit
that referenced
this issue
Nov 1, 2022
* Fix failing grouped `epix_slide` test, where `group_modify` dropped the `epi_df` class when binding results together, by implementing `dplyr_reconstruct.epi_df`. * Implement the rest of `?dplyr_extending` and remove some now-unnecessary S3 methods for dplyr verbs, addressing #195, #223, and changing `epi[x]_slide` to leave grouping intact. * Update tests for grouped slides to reflect new behavior. * Update NEWS.md.
brookslogan
pushed a commit
that referenced
this issue
Nov 1, 2022
* Half-fix failing grouped `epix_slide` test, where `group_modify` dropped the `epi_df` class when binding results together, by implementing `dplyr_reconstruct.epi_df`. Somehow a session documenting and testing immediately before this commit and then after it will have the tests pass, but the tests won't pass off of this branch directly. The class vector involved in the failure does appear to change. * Explicate `epix_slide` `count` derivation. * Implement the rest of `?dplyr_extending` and remove some now-unnecessary S3 methods for dplyr verbs, addressing #195, #223, and changing `epi[x]_slide` to leave grouping intact. * Update tests for grouped slides to reflect new behavior. * Update NEWS.md.
brookslogan
pushed a commit
that referenced
this issue
Nov 2, 2022
…modify` * Implement `?dplyr_extending` and remove some now-unnecessary S3 methods for dplyr verbs, addressing #195, #223, and failing `epix_slide` test. * Don't ungroup `epix_slide` result. Update corresponding test. * Update NEWS.md. * Explicate `epix_slide` `count` derivation in comments and variable names. * Fix some desynced duplicated code in `epix_slide` and use `group_modify` again instead of `summarize` in order to keep slide computation input available as an `epi_df`.
brookslogan
pushed a commit
that referenced
this issue
Nov 2, 2022
…modify` * Implement `?dplyr_extending` and remove some now-unnecessary S3 methods for dplyr verbs, addressing #195, #223, and failing `epix_slide` test. * Don't ungroup `epix_slide` result. Update corresponding test. * Update NEWS.md. * Explicate `epix_slide` `count` derivation in comments and variable names. * Fix some desynced duplicated code in `epix_slide` and use `group_modify` again instead of `summarize` in order to keep slide computation input available as an `epi_df`.
brookslogan
pushed a commit
that referenced
this issue
Nov 3, 2022
…modify` * Implement `?dplyr_extending` and remove some now-unnecessary S3 methods for dplyr verbs, addressing #195, #223, and failing `epix_slide` test. * Don't ungroup `epix_slide` result. Update corresponding test. * Update NEWS.md. * Explicate `epix_slide` `count` derivation in comments and variable names. * Fix some desynced duplicated code in `epix_slide` and use `group_modify` again instead of `summarize` in order to keep slide computation input available as an `epi_df`.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Want to create our own
rename()
function such that if we rename a column corresponding to other_keys, we update the metadata accordingly (to have the updated name). For example, if we consider ex3 from here, if the user performsrenamed_ex3 = ex3 %>% dplyr::rename(Pol = pol)
, then the metadata forrenamed_ex3
should be updated to have Pol under$other_keys
instead of pol. Also, if the user tries to change the name of eithergeo_value
ortime_value
, should probably throw an error as those two are important to leave named as they are. Mentioned in Issues #192 and #194.The text was updated successfully, but these errors were encountered: