make_industry_table: Create a table for the industry ppq

View source: R/make_industry_table.R

make_industry_tableR Documentation

Create a table for the industry ppq

Description

Create a table for the industry ppq

Usage

make_industry_table(
  data,
  destination = "ppqs",
  years_in_sparklines = 3,
  row_order = NULL,
  highlight_rows = NULL,
  notes = NULL,
  title = "",
  rename_indicators = FALSE,
  pretty_round = TRUE
)

Arguments

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 NULL then all rows are non-bold, non-indented.

notes

Optional notes to add to caption. Source will be inferred automatically based on the data using caption_auto().

title

Character vector to use as the table title. Will only be used when destination is "briefing".

rename_indicators

logical; default is TRUE. If TRUE, the rename_indicators() function will be used to rename certain indicators.

pretty_round

Logical; TRUE by default. If TRUE, figures will be rounded using pretty_round(). This means (for eg.) figures below 50 will be rounded to 0. If FALSE, figures will not be rounded with pretty_round().

Examples

# dash_data <- load_dash_data()
## Not run: 
make_industry_table(
  data = filter_dash_data(series_ids = c(
    "A84601662A",
    "A84601680F",
    "A84601683L",
    "A84601686V",
    "A84601665J",
    "A84601704L",
    "A84601707V",
    "A84601710J",
    "A84601638A",
    "A84601653X",
    "A84601689A",
    "A84601656F",
    "A84601713R",
    "A84601668R",
    "A84601695W",
    "A84601698C",
    "A84601650T",
    "A84601671C",
    "A84601641R",
    "A84601716W"
  ),
  row_order = c(
    "A84601662A",
    "A84601680F",
    "A84601683L",
    "A84601686V",
    "A84601665J",
    "A84601704L",
    "A84601707V",
    "A84601710J",
    "A84601638A",
    "A84601653X",
    "A84601689A",
    "A84601656F",
    "A84601713R",
    "A84601668R",
    "A84601695W",
    "A84601698C",
    "A84601650T",
    "A84601671C",
    "A84601641R",
    "A84601716W"
  ),
  highlight_rows = c("A84601662A")
)

## End(Not run)

djpr-data/djprlabourdash documentation built on April 28, 2023, 6:16 p.m.