get_latest_reported_df: Get latest reported data frame

View source: R/utils-summary.R

get_latest_reported_dfR Documentation

Get latest reported data frame

Description

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.


gpw13/rapporteur documentation built on Sept. 24, 2022, 9:15 a.m.