Skip to contents

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

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