build_signals_agg_table.Rd
Prepares and formats the aggregated signal results table for one category and orders the strata by the factor levels. This function combines the preparation of the aggregated signals data.frame with the final formating of the table by applying prepare_signals_agg_table and format_table.
build_signals_agg_table(signals_agg, format = "DataTable")
A tibble or data.frame containing aggregated signals produced from aggregate_signals(signals,number_of_weeks = 6).
Character specifying the output format. Must be one of: - `"data.frame"`: A standard R data frame. - `"DataTable"`: An interactive table using the DataTable library. - `"Flextable"`: A formatted table suitable for reporting,i.e. word documents. Default is "DataTable".
data.frame or DataTable or Flextable depending on `format`
if (FALSE) {
signals_agg <- input_example %>%
preprocess_data() %>%
get_signals(stratification = c("age_group", "sex")) %>%
aggregate_signals(number_of_weeks = 6) %>%
filter(category == "age_group")
build_signals_agg_table(signals_agg)
}