calculate_hpop_billion_single: Calculate the HPOP Billion for one column of change

View source: R/calculate_hpop_billion.R

calculate_hpop_billion_singleR Documentation

Calculate the HPOP Billion for one column of change

Description

Calculate the HPOP Billion for one column of change

Usage

calculate_hpop_billion_single(
  change,
  contribution_col,
  df,
  pop_year,
  scenario_col
)

Arguments

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 transform_value_col.

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.


gpw13/billionaiRe documentation built on Sept. 27, 2024, 10:05 p.m.