From 4b80acaf058031bc021ec60e63bce70483ec95d4 Mon Sep 17 00:00:00 2001 From: Hugo Gruson <10783929+Bisaloo@users.noreply.github.com> Date: Mon, 25 Mar 2024 13:55:08 +0100 Subject: [PATCH] Remove hardcoded group var name --- inst/rmarkdown/templates/transmissibility/skeleton/skeleton.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inst/rmarkdown/templates/transmissibility/skeleton/skeleton.Rmd b/inst/rmarkdown/templates/transmissibility/skeleton/skeleton.Rmd index d75af5e9..c183853b 100644 --- a/inst/rmarkdown/templates/transmissibility/skeleton/skeleton.Rmd +++ b/inst/rmarkdown/templates/transmissibility/skeleton/skeleton.Rmd @@ -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 ))