View source: R/transform_uhc.R
transform_uhc_data | R Documentation |
transform_uhc_data()
applies transformations on UHC Billion indicators so
that transformed indicator values can be used within Billions calculations.
Details on the specific transformations applied can be found within the
Billions methods report. Values in the transform column, if it already exists,
are replaced for UHC indicators that have data in the value column, otherwise
the column keeps its original data.
transform_uhc_data(
df,
value_col = "value",
transform_glue = "transform_{value_col}",
ind_ids = billion_ind_codes("uhc"),
recycle = FALSE,
...
)
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_glue |
Glue expression to be passed to |
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
|
recycle |
Boolean to indicate if data should be recycled |
... |
additional parameters to to pass to |
For more details on the UHC Billion calculation process and how this function ties in with the rest, see the vignette:
vignette("uhc", package = "billionaiRe")
Data frame in long format.
Other uhc:
calculate_uhc_billion()
,
calculate_uhc_contribution()
,
transform_uhc_single()
,
uhc_df
,
untransform_uhc_data()
,
untransform_uhc_single()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.