Skip to contents

get_latest_reported() gets the latest reported data available for estimated or reported data. Used in write functions.

Usage

get_latest_reported_df(
  df,
  value_col,
  transform_value_col = NULL,
  level = NULL,
  ind_df
)

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

Value

openxslx Workbook object. Output file is in output_folder.