Standard Deviation Based on a Time-Window
tbr_sd_window(x, tcolumn, unit = "years", n, i, na.pad, ...)
numeric value
column containing the values to calculate the standard deviation.
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 base::sd()