Skip to contents

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

Usage

get_baseline_projection_df(
  df,
  value_col,
  transform_value_col,
  start_year,
  end_year,
  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.

start_year

Base year for contribution calculation, defaults to 2018.

end_year

End year(s) for contribution calculation, defaults to 2019 to 2025.

ind_df

data frame containing the indicators in the correct order and format to be used.

Value

openxslx Workbook object. Output file is in output_folder.