View source: R/write_dataframes_uhc_summary.R
write_data_boxes_uhc_summary | R Documentation |
write_data_boxes_uhc_summary
writes and styles the data box in UHC summary worksheet.
Used in write_uhc_summary_sheet()
.
write_data_boxes_uhc_summary( df, pillar = c("RMNCH", "infec_diseases", "ncd", "service_cap_access"), wb, sheet_name, value_col, transform_value_col, boxes_bounds, start_year, end_year, ind_df, ind_ids )
df |
Data frame in long format filtered for a specific country, where 1 row corresponds to a specific year, and indicator. |
pillar |
character Pillar identifying the pillar to style. Must be one of
|
wb |
a |
sheet_name |
character name of the sheet to update |
value_col |
Column name of column with indicator values. |
transform_value_col |
Column name of column(s) with transformed indicator values, used to calculate contributions. |
boxes_bounds |
named list of bounds for data frame boxes to be written in sheet. |
start_year |
Base year for contribution calculation, defaults to 2018. |
end_year |
End year(s) for contribution calculation, defaults to 2019 to 2025. |
ind_df |
data frame containing the indicators in the correct order and format to be used. |
ind_ids |
Named vector of indicator codes for input indicators to the Billion.
Although separate indicator codes can be used than the standard, they must
be supplied as a named vector where the names correspond to the output of
|
openxslx
Workbook object. Output file is in output_folder
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.