make_table | R Documentation |
Create a table for the dashboard or a briefing document
make_table(
data,
destination = Sys.getenv("R_DJPRLABOURDASH_TABLEDEST", unset = "dashboard"),
years_in_sparklines = 3,
row_order = NULL,
highlight_rows = NULL,
notes = NULL,
title = "",
rename_indicators = TRUE,
pretty_round = TRUE
)
data |
A data frame containing data to summarise |
destination |
"dashboard", "briefing" or "ppqs |
years_in_sparklines |
Period of time to include in the sparkline line charts. |
row_order |
Vector of series IDs, in the order in which you wish the corresponding rows to be included in the output table |
highlight_rows |
Vector of series IDs, corresponding to rows
in the table to highlight.
Highlighted rows are bolded and have a top border; non-highlighted rows
are indented. If |
notes |
Optional notes to add to caption. Source will be inferred
automatically based on the data using |
title |
Character vector to use as the table title. Will only be used
when |
rename_indicators |
logical; default is |
pretty_round |
Logical; |
# dash_data <- load_dash_data()
## Not run:
make_table(
data = filter_dash_data(series_ids = c(
"A84423354L",
"A84423242V",
"A84423466F"
)),
row_order = c(
"A84423354L",
"A84423242V",
"A84423466F"
),
highlight_rows = c("A84426256L")
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.