diff --git a/DESCRIPTION b/DESCRIPTION index 2d52f07926..526fd2eaca 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Type: Package Package: admiral Title: ADaM in R Asset Library -Version: 1.1.1.9028 +Version: 1.1.1.9029 Authors@R: c( person("Ben", "Straub", , "ben.x.straub@gsk.com", role = c("aut", "cre")), person("Stefan", "Bundfuss", role = "aut", diff --git a/inst/templates/ad_adeg.R b/inst/templates/ad_adeg.R index 3be5b8bdc1..e490f8d93c 100644 --- a/inst/templates/ad_adeg.R +++ b/inst/templates/ad_adeg.R @@ -177,7 +177,7 @@ adeg <- adeg %>% adeg <- adeg %>% derive_summary_records( dataset_add = adeg, - by_vars = exprs(STUDYID, USUBJID, !!!adsl_vars, PARAMCD, AVISITN, AVISIT, ADT), + by_vars = exprs(STUDYID, USUBJID, !!!adsl_vars, PARAMCD, AVISITN, AVISIT, ADT, ADY), filter_add = dplyr::n() >= 2 & PARAMCD != "EGINTP", set_values_to = exprs( AVAL = mean(AVAL, na.rm = TRUE),