Skip to contents

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