powered by
Time-Based Rolling Standard Deviation
tbr_sd(.tbl, x, tcolumn, unit = "years", n, na.rm = FALSE)
tibble with column for the rolling sd.
a data frame with at least two variables; time column formatted as date, date/time and value column.
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.
logical. Should missing values be removed?
sd
tbr_sd(Dissolved_Oxygen, x = Average_DO, tcolumn = Date, unit = "years", n = 5)
Run the code above in your browser using DataLab