get_latest_reported_df: Get latest reported data frame

Description Usage Arguments Value

View source: R/utils-summary.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
get_latest_reported_df(
  df,
  iso3,
  ind,
  type_col,
  year,
  value,
  transform_value = NULL,
  level = NULL,
  source_col,
  ind_df
)

Arguments

df

Data frame in long format, where 1 row corresponds to a specific country, year, and indicator.

iso3

Column name of column with country ISO3 codes.

ind

Column name of column with indicator names.

type_col

Column name of column with type data.

year

Column name of column with years.

value

Column name of column with indicator values.

transform_value

Column name of column(s) with transformed indicator values, used to calculate contributions.

level

integer indicating the level column. Specific to HEP.

source_col

Column name of column to store source information.

ind_df

data frame containing information on indicators

Value

openxslx Workbook object. Output file is in output_folder.


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