get_df_one_scenario: Get data frame with just one scenario

Description Usage Arguments Value

View source: R/utils-export.R

Description

Get just one scenario in the data frame. Is used to avoid issues with when multiple scenarios are present in export functions, as scenarios are not implemented at the moment.

Usage

1
get_df_one_scenario(df, scenario, default_scenario)

Arguments

df

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

scenario

Column name of column with scenario identifiers. Useful for calculating contributions on data in long format rather than wide format.

default_scenario

name of the default scenario.

Value

A data frame with one scenario


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