Skip to content

Keep epi_df-ness in summarise + fix roxygen typos #297

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

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ S3method(group_by,epi_archive)
S3method(group_by,epi_df)
S3method(group_by,grouped_epi_archive)
S3method(group_by_drop_default,grouped_epi_archive)
S3method(group_modify,epi_df)
S3method(groups,grouped_epi_archive)
S3method(next_after,Date)
S3method(next_after,integer)
S3method(print,epi_df)
S3method(summarise,epi_df)
S3method(summary,epi_df)
S3method(ungroup,epi_df)
S3method(ungroup,grouped_epi_archive)
Expand Down Expand Up @@ -80,6 +82,7 @@ importFrom(dplyr,relocate)
importFrom(dplyr,rename)
importFrom(dplyr,select)
importFrom(dplyr,slice)
importFrom(dplyr,summarise)
importFrom(dplyr,ungroup)
importFrom(lubridate,days)
importFrom(lubridate,weeks)
Expand Down
11 changes: 10 additions & 1 deletion R/methods-epi_df.R
Original file line number Diff line number Diff line change
Expand Up @@ -187,14 +187,23 @@ ungroup.epi_df = function(x, ...) {
reclass(x, metadata)
}

#' @method unnest epi_df
#' @method group_modify epi_df
#' @rdname print.epi_df
#' @param data The `epi_df` object.
#' @export
group_modify.epi_df = function(.data, .f, ..., .keep = FALSE) {
dplyr::dplyr_reconstruct(NextMethod(), .data)
}

#' @method summarise epi_df
#' @rdname print.epi_df
#' @param data The `epi_df` object.
#' @importFrom dplyr summarise
#' @export
summarise.epi_df = function(.data, .f, ..., .keep = FALSE) {
dplyr::dplyr_reconstruct(NextMethod(), .data)
}

#' @method unnest epi_df
#' @rdname print.epi_df
#' @param data The `epi_df` object.
Expand Down
5 changes: 4 additions & 1 deletion man/print.epi_df.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.