Mean Based on a Time-Window
tbr_mean_window(x, tcolumn, unit = "years", n, i, na.pad, ...)
list
column containing the values to calculate the mean.
formatted time column.
character, one of "years", "months", "weeks", "days", "hours", "minutes", "seconds"
numeric, describing the length of the time window.
row
logical. If `na.pad = TRUE` incomplete windows (duration of the window < `n`) return `NA`.
additional arguments passed to mean_ci