View source: R/remove_diurnal_cycle.R
| remove_diurnal_cycle | R Documentation |
Removes the mean diurnal (or other periodic) cycle by subtracting the average value for each time period (hour, month, or day). The grouping is based on a time column.
remove_diurnal_cycle(data, cols = NULL, date_col = NULL,
by = "hour", verbose = FALSE)
data |
A data frame with a time column. |
cols |
Column indices or names to adjust. |
date_col |
Time column index or name. |
by |
Period for cycle removal: |
verbose |
Logical; if |
A data frame with diurnal cycle removed.
remove_diurnal_cycle(data[1:200, c(1, 4, 17:19)], cols = 3:5, date_col = 1, by = "hour")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.