powered by
Ensures that start and end years are valid numeric values and in correct order.
years(start_year, end_year)
A list with named elements year_start and year_end.
year_start
year_end
Integer. Start year for filtering (inclusive).
Integer. End year for filtering (inclusive).
valid_years <- years(2018, 2022)
Run the code above in your browser using DataLab