untransform_hpop_single: Perform a transformation on a single column

View source: R/transform_hpop.R

untransform_hpop_singleR Documentation

Perform a transformation on a single column

Description

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

Usage

untransform_hpop_single(df, transform_value_col, value_col, 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(s) of column with transformed values to retrieve.

value_col

Column name(s) of column to place untransformed values. Must be same length as transform_value_col. If a column already exists, values are overwritten wherever ind and transform_value_col are available to be untransformed for this Billion, but otherwise, the column retains its other 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 hpop: add_hpop_populations(), calculate_hpop_billion_change(), calculate_hpop_billion(), calculate_hpop_contributions(), hpop_df, transform_hpop_data(), transform_hpop_single(), untransform_hpop_data()


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