Create an interactive table of MQO summary data
tabulate_mqo_stats.RdThis function takes the output of summarise_mqo_stats() and creates an
interactive table of the outputs. The output table is nested per object,
Usage
tabulate_mqo_stats(
stats,
expanded = TRUE,
color_pass = "#136F63",
color_fail = "#840032",
color_fixed = "#4269D0",
color_indicative = "#EFB118"
)Arguments
- stats
The output of
summarise_mqo_stats(). All relevant information (e.g.,term,params_fixed, etc.) will be passed to this function from the statistics object.- expanded
Initialise the widget as expanded? Defaults to
TRUE. Passed toreactable::reactable()'sdefaultExpandedargument.- color_pass, color_fail, color_fixed, color_indicative
These colours are used to colour various cells in the output. Can be expressed as hex codes, or any colours listed in
colors().
Value
a reactable::reactable() object
Examples
tabulate_mqo_stats(
summarise_mqo_stats(demo_longterm, pollutant = "PM10")
)
#> ! term assumed to be 'long'.
#> ℹ If this is incorrect, please specify the data's term using the term argument.
#>
#> ! Using fixed long-term annual pm10 parameters.
#> ℹ If this is incorrect, please use `mqor::mqo_params()` or
#> `mqor::mqo_params_default()` to construct a parameter set.
#>
tabulate_mqo_stats(
summarise_mqo_stats(demo_shortterm, pollutant = "PM10")
)
#> ! term assumed to be 'short'.
#> ℹ If this is incorrect, please specify the data's term using the term argument.
#>
#> ! Using fixed short-term daily pm10 parameters.
#> ℹ If this is incorrect, please use `mqor::mqo_params()` or
#> `mqor::mqo_params_default()` to construct a parameter set.
#>