Skip to content

Commit 9cc3437

Browse files
committed
Fix grouped epi_df select when renaming
1 parent 510e6d4 commit 9cc3437

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/group_by_epi_df_methods.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
#' @export
33
select.epi_df <- function(.data, ...) {
44
selected <- NextMethod(.data)
5-
return (dplyr_reconstruct(selected, .data))
5+
might_decay <- reclass(selected, attr(selected, "metadata"))
6+
return(dplyr_reconstruct(might_decay, might_decay))
67
}
78

89
# others to consider:

0 commit comments

Comments
 (0)