Friction period: lookups in days/weeks (1-year vs 5-year average)"

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.width = 7, fig.height = 4.2,
  dpi = 120
)
library(tatooheene)
library(dplyr)

What this vignette covers

The function is r lifecycle::badge("experimental"). Column names reflect the CBS table embedded in df_fp.

The underlying data

df_fp %>%
  select(Year,
         `Friction period in days`,
         `Friction period days average over 5 years`,
         `Friction period in weeks`,
         `Friction period weeks average over 5 years`) %>%
  head()

Quick starts

1) Default: all years, weeks, 5‑year average

tatooheene::friction_period()

2) Specific year, weeks, 5‑year average → single value

tatooheene::friction_period(year = 2019, units = "weeks", avg = "5yr", output = "value")

3) Days, 1‑year values for a range of years

tatooheene::friction_period(year = 2018:2020, units = "days", avg = "1yr")

4) Multiple selections return multiple columns

tatooheene::friction_period(
  year  = 2015:2019,
  units = c("days", "weeks"),
  avg   = "1yr"       # try c("1yr","5yr") to get four columns
)

Error messages you might see



Try the tatooheene package in your browser

Any scripts or data that you put into this service are public.

tatooheene documentation built on Dec. 15, 2025, 5:06 p.m.