style_timeseries: Styles time series sheet

Description Usage Arguments Value

View source: R/timeseries_style.R

Description

style_header_hpop_summary_sheet styles the title and sub-title of the worksheet header.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
style_timeseries(
  df,
  wb,
  billion = c("hep", "hpop", "uhc"),
  sheet_name,
  start_row,
  start_col,
  ind,
  year,
  type_col,
  df_wide,
  ind_df,
  this_iso3 = NULL
)

Arguments

df

data frame to be written

wb

a openxlsx workbook to be edited.

billion

Billion to be used for billion styling when relevant: either "hep", "hpop", or "uhc" when no billion to be applied.

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.

df_wide

wide version of df generated by write_uhc_timeseries_sheet

ind_df

data frame containing information on indicators

this_iso3

character iditenfying the country being styled.

Value

openxslx Workbook object. Output file is in output_folder.


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