View source: R/utils-scenarios.R
| trim_years | R Documentation | 
Trim values
trim_years(df, trim_years, start_year, end_year)
| df | Data frame in long format, where 1 row corresponds to a specific country, year, and indicator. | 
| trim_years | logical to indicate if years before  | 
| start_year | Start year for scenario, defaults to 2018. | 
| end_year | End year for scenario, defaults to 2025 | 
General scenario functions
add_scenario(),
calculate_aarc(),
calculate_aroc(),
exec_scenario(),
fill_cols_scenario(),
flat_extrapolation(),
get_aarr(),
get_baseline_value(),
get_baseline_year(),
get_last_value(),
get_last_year_scenario(),
get_latest_aarc(),
get_percent_change_aarc(),
get_target_aarc(),
remove_unwanted_scenarios(),
trim_values()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.