Description Usage Arguments Value
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.
1 | get_df_one_scenario(df, scenario, default_scenario)
|
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. |
A data frame with one scenario
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.