transform_prev_routine_data: Transform Prevent routine data

View source: R/transform_hep.R

transform_prev_routine_dataR Documentation

Transform Prevent routine data

Description

Prevent routine data is now stored raw using the percent coverage of the indicator. We want to transform this back into a numerator value for use within pathogen_calc.

Usage

transform_prev_routine_data(
  df,
  value_col,
  transform_value_col,
  scenario_col,
  ind_ids
)

Arguments

df

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

value_col

Column name of column with indicator values.

transform_value_col

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

scenario_col

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

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

See Also

HEP functions add_hep_populations(), calculate_hep_billion(), calculate_hep_components(), hep_df, transform_hep_data(), transform_prev_cmpgn_data()

Other transform: transform_prev_cmpgn_data()


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