get_baseline_projection_df: Get baseline and projections data frame for specified dates

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
13
get_baseline_projection_df(
  df,
  iso3,
  ind,
  type_col,
  year,
  value,
  transform_value,
  start_year,
  end_year,
  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.

start_year

Base year for contribution calculation, defaults to 2018.

end_year

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

source_col

Column name of column to store source information.

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.


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