Skip to content

Commit e797b89

Browse files
committed
add "drop_last" to suppress dplyr summarise warnings
1 parent 9893324 commit e797b89

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

episodes/compare-interventions.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ If we wanted to quantify the impact of the intervention over the model output th
204204
output %>%
205205
filter(compartment == "infectious") %>%
206206
group_by(time, intervention_type) %>%
207-
summarise(value_total = sum(value)) %>%
207+
summarise(value_total = sum(value), .groups = "drop_last") %>%
208208
group_by(intervention_type) %>%
209209
mutate(cum_value = cumsum(value_total)) %>%
210210
ggplot() +
@@ -454,7 +454,7 @@ output_vacamole <- rbind(output_intervention_vc, output_baseline_vc)
454454
output_vacamole %>%
455455
filter(compartment == "dead") %>%
456456
group_by(time, intervention_type) %>%
457-
summarise(value_total = sum(value)) %>%
457+
summarise(value_total = sum(value), .groups = "drop_last") %>%
458458
group_by(intervention_type) %>%
459459
mutate(cum_value = cumsum(value_total)) %>%
460460
ggplot() +

0 commit comments

Comments
 (0)