get_latest_reported()
gets the latest reported data available for estimated
or reported data. Used in write functions.
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.
- level
integer indicating the level column. Specific to HEP.
- ind_df
data frame containing information on indicators