timeseries_style: Change font of time series values

Description Usage Arguments Details Value

View source: R/timeseries_style.R

Description

timeseries_style() changes the font of time series values based on the indicator type it is:

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
timeseries_style(
  df,
  wb,
  sheet_name,
  start_row,
  start_col,
  ind,
  year,
  type_col,
  ind_df
)

Arguments

df

data frame to be written

wb

a openxlsx workbook to be edited.

sheet_name

character name of the sheet to update

start_row

integer start row of styling. Passed to openxlsx::addStyle()

start_col

integer start col of styling. Passed to openxlsx::addStyle()

ind

Column name of column with indicator names.

year

Column name of column with years.

type_col

Column name of column with type data.

ind_df

data frame containing the indicators in the correct order and format to be used.

Details

Value

openxslx Workbook object. Output file is in output_folder.


ElliottMess/rapporteur documentation built on Jan. 28, 2022, 2:51 a.m.