x <- dplyr::tibble(
cohort_name = c("cohort1", "cohort2"),
variable_name = "age",
mean = c(50, 45.3),
median = c(55L, 44L)
)
transformToSummarisedResult(
x = x,
group = c("cohort_name"),
estimates = c("mean", "median")
)
Run the code above in your browser using DataLab