Description Usage Arguments Value
View source: R/write_dataframes_hpop_summary.R
write_hpop_summary_sheet()
writes all the content and styling for the HPOP
summary sheet. Used within export_hpop_country_summary_xls()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | write_latest_reported_hpop_summary(
df,
wb,
sheet_name,
ind_df,
start_row,
start_col,
type_col,
iso3,
ind,
year,
value,
transform_value,
source_col,
year_counts = c(2000, 2015),
bounds,
ind_ids
)
|
df |
Data frame in long format filtered for a specific country, where 1 row corresponds to a specific year, and indicator. |
wb |
a |
sheet_name |
character name of the sheet to update |
ind_df |
data frame containing the indicators in the correct order and format to be used. |
start_row |
integer start row of styling. Passed to |
start_col |
integer start col of styling. Passed to |
type_col |
Column name of column with type data. |
iso3 |
Column name of column with country ISO3 codes. |
ind |
Column name of column with indicator names. |
year |
Column name of column with years. |
value |
Column name of column with indicator values. |
transform_value |
Column name of column(s) with transformed indicator values, used to calculate contributions. |
source_col |
Column name of column to store source information. |
year_counts |
integer vector with the year(s) to count the number of values available for a specific indicators. Defaults to 2000 and 2015. |
bounds |
named integer vector identifying integer sheet start and end reference column.
All parameters must be numerical. For converting Excel column references to integer references
see
|
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.