Skip to content

Commit

Permalink
Merge pull request #15 from DavisVaughan/fix/complete-grouped
Browse files Browse the repository at this point in the history
Ungroup before completing
  • Loading branch information
elimillera committed Jan 25, 2022
2 parents dbaecbe + 89d81ab commit a152af1
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 a152af1

Please sign in to comment.