Builds the aggregated signal detection results table with different formating options.
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.
Arguments
- signals_agg
A tibble or data.frame containing aggregated signals produced from aggregate_signals(signals,number_of_weeks = 6).
- format
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".
Examples
if (FALSE) { # \dontrun{
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)
} # }