Skip to content

Commit

Permalink
Ungroup before completing
Browse files Browse the repository at this point in the history
  • Loading branch information
DavisVaughan committed Jan 11, 2022
1 parent dbaecbe commit 89d81ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/shift.R
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ process_shift_denoms <- function(x) {
filter(!!denom_where) %>%
group_by(!!!unname(target_var), !!treat_var, !!!by, !!!cols) %>%
summarize(n = n()) %>%
ungroup() %>%
complete(!!!unname(target_var), !!treat_var, !!!by, !!!cols) %>%
# The rows will duplicate for some reason so this removes that
distinct() %>%
Expand Down

0 comments on commit 89d81ab

Please sign in to comment.