trim_years: Trim values

View source: R/utils-scenarios.R

trim_yearsR Documentation

Trim values

Description

Trim values

Usage

trim_years(df, trim_years, start_year, end_year)

Arguments

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 and after end_year should be removed

start_year

Start year for scenario, defaults to 2018.

end_year

End year for scenario, defaults to 2025

See Also

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()


gpw13/billionaiRe documentation built on Sept. 27, 2024, 10:05 p.m.