tbr_misc | R Documentation |
Use Generic Functions with Time Windows
tbr_misc(.tbl, x, tcolumn, unit = "years", n, na.pad = TRUE, func, ...)
.tbl |
a data frame with at least two variables; time column formatted as date, date/time and value column. |
x |
column containing the values the function is applied to. |
tcolumn |
formatted time column. |
unit |
character, one of "years", "months", "weeks", "days", "hours", "minutes", "seconds" |
n |
numeric, describing the length of the time window. |
na.pad |
logical. If 'na.pad = TRUE' incomplete windows (duration of the window < 'n') return 'NA'. Defaults to 'TRUE' |
func |
specified function |
... |
optional additional arguments passed to function |
tibble
tbr_misc(Dissolved_Oxygen, x = Average_DO, tcolumn = Date, unit = "years",
n = 5, na.pad = FALSE, func = mean)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.