Create an interactive table of MQO summary data
tabulate_mqo_stats.Rd
This 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.- expanded
Initialise the widget as expanded? Defaults to
TRUE
. Passed toreactable::reactable()
'sdefaultExpanded
argument.- 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.
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.