# All years, 5-year average in weeks (default)
friction_period()
# Specific year (2019), weeks 5-year average
friction_period(year = 2019)
# Days (1-year) for multiple years
friction_period(year = 2018:2020, units = "days", avg = "1yr")
# Single numeric value (requires one year + one combo)
friction_period(year = 2019, units = "weeks", avg = "5yr", output = "value")
Run the code above in your browser using DataLab