View source: R/friction_period.R
| friction_period | R Documentation |
Return friction periods from the internal CBS-based table.
friction_period(
year = NULL,
units = "weeks",
avg = "5yr",
output = c("tibble", "value"),
data = tatooheene::df_fp
)
year |
Integer vector of years to return. If |
units |
One or more of |
avg |
One or more of |
output |
Either |
data |
Data source (mainly for testing); default is |
A tibble when output = "tibble", or a single numeric when output = "value".
# 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.