transform_uhc_single: Perform a transformation on a single column

View source: R/transform_uhc.R

transform_uhc_singleR Documentation

Perform a transformation on a single column

Description

This function is used within transform_uhc_data() to generate transformed data on a single column.

Usage

transform_uhc_single(df, value_col, transform_value_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

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

Value

A single column data frame of transformed values.

See Also

Other uhc: calculate_uhc_billion(), calculate_uhc_contribution(), transform_uhc_data(), uhc_df, untransform_uhc_data(), untransform_uhc_single()


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