View source: R/calculate_hpop_billion.R
calculate_hpop_billion_single | R Documentation |
Calculate the HPOP Billion for one column of change
calculate_hpop_billion_single(
change,
contribution_col,
df,
pop_year,
scenario_col
)
change |
Column name of column with change value |
contribution_col |
Column name of column(s) to store contribution (population)
values. Must be the same length as |
df |
Data frame in long format, where 1 row corresponds to a specific country, year, and indicator. |
pop_year |
Year used to pull in HPOP populations, defaults to 2025. |
scenario_col |
Column name of column with scenario identifiers. Useful for calculating contributions on data in long format rather than wide format. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.