Code
df <- input %>% get_summary_records(by_vars = exprs(USUBJID, PARAM, AVISIT),
set_values_to = exprs(AVAL = mean(AVAL, na.rm = TRUE), DTYPE = "AVERAGE")) %>%
dplyr::mutate(AVAL = round(AVAL))
Message
`get_summary_records()` was deprecated in admiral 1.2.0.
i Please use `derive_summary_records()` instead.
x This message will turn into a warning at the beginning of 2026.
i See admiral's deprecation guidance: https://pharmaverse.github.io/admiraldev/dev/articles/programming_strategy.html#deprecation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.