calculate_uhc_billion_single: Calculate UHC Billion for one set of columns

View source: R/calculate_uhc_billion.R

calculate_uhc_billion_singleR Documentation

Calculate UHC Billion for one set of columns

Description

Calculate UHC Billion for one set of columns

Usage

calculate_uhc_billion_single(
  df,
  transform_value_col,
  value_col,
  scenario_col,
  source,
  projected_year,
  ind_ids
)

Arguments

df

Data frame in long format, where 1 row corresponds to a specific country, year, and indicator.

transform_value_col

Column name of column(s) with transformed indicator values, used to calculate contributions.

value_col

Column name of column with indicator values.

scenario_col

Column name of column with scenario identifiers. Useful for calculating contributions on data in long format rather than wide format.

source

Source to provide for calculated average service coverage and single measure.

projected_year

Year that calculated data will be regarded as projected. Years prior reported as estimated.

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 billion_ind_codes().


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