create_summary_df: Create a summary dataframe for use in a table

View source: R/create_summary_df.R

create_summary_dfR Documentation

Create a summary dataframe for use in a table

Description

Create a summary dataframe for use in a table

Usage

create_summary_df(data, years_in_sparklines = 3, pretty_round = TRUE)

Arguments

data

Dataframe of input data

years_in_sparklines

Number of years worth of data to include in sparkline

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

## Not run: 
dash_data <- load_dash_data()
create_summary_df(data = filter_dash_data(c(
  "A84423349V",
  "A84423357V",
  "A84423356T",
  "A84423244X",
  "A84423468K",
  "pt_emp_vic"
)))

## End(Not run)

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