Skip to content

Commit

Permalink
Remove hardcoded group var name
Browse files Browse the repository at this point in the history
  • Loading branch information
Bisaloo committed Mar 25, 2024
1 parent cdb5ab7 commit 4b80aca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ total_cases <- dat_i %>%
group_by(.data[[group_var]]) %>%
summarise(cases = sum(count)) %>%
mutate(group_var := fct_reorder(
.f = region,
.f = .data[[group_var]],
.x = cases
))
Expand Down

0 comments on commit 4b80aca

Please sign in to comment.