View source: R/write_dataframes_hpop_summary.R
write_billion_contrib_ind_hpop_summary | R Documentation |
Used within write_hpop_summary_sheet()
write_billion_contrib_ind_hpop_summary( df, wb, sheet_name, start_year, end_year, contribution_pct, contribution, contribution_pct_total_pop, ind_df, boxes_bounds, ind_ids )
df |
data frame to be written |
wb |
a |
sheet_name |
character name of the sheet to update |
start_year |
Base year for contribution calculation, defaults to 2018. |
end_year |
End year(s) for contribution calculation, defaults to 2019 to 2025. |
contribution_pct |
Column name of column(s) to store contribution (percent)
values. Must be the same length as |
contribution |
Column name of column(s) to store contribution (population)
values. Must be the same length as |
contribution_pct_total_pop |
Column name of column(s) to store contribution
(percent of total population of the country) values. Must be the same length
as |
ind_df |
data frame containing the indicators in the correct order and format to be used. |
boxes_bounds |
named list of bounds for data frame boxes to be written in sheet. |
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.