get_transform_formula: Get the transformation formula for a specified indicator

Description Usage Arguments Value

View source: R/get_excel_formulas.R

Description

get_transform_formula() gets the right transformation Excel formula for the specified indicator. Used in write_tranform_formula.

Usage

1
get_transform_formula(ind, raw_col, raw_rows, ind_ids, iso3)

Arguments

ind

Column name of column with indicator names.

raw_col

integer identifying the column where the raw value (pre-transformation) is located.

raw_rows

integer vector identifying rows indices where raw values for transformation are located. Must be the same length as ind

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

iso3

Country ISO3 code.

Value

character vector with the formula for the indicator, column, row combination specified. If indicator is not found, "" is returned.


ElliottMess/rapporteur documentation built on Jan. 28, 2022, 2:51 a.m.