View source: R/POR_deseasonalize.R
POR_deseasonalize | R Documentation |
Removes seasonal trends from a daily or monthly time series. Daily data are deseasonalized by subtracting monthly mean values. Monthly data are deseasonalized by subtracting mean monthly values.
POR_deseasonalize(data = NULL, Date, value, time_step = c("daily", "monthly"))
data |
'data.frame'. Optional data.frame input, with columns containing |
Date |
'numeric' vector of Dates corresponding to each |
value |
'numeric' vector of values (often streamflow) when |
time_step |
'character' value. Either |
The deseasonalize function removes seasonal trends from a daily or monthly time series
and returns a deseasonalized time series, which can be used in the POR_calc_AR1
function.
Deseasonalized values.
POR_calc_AR1
POR_deseasonalize(data = example_obs, Date = "Date", value = "streamflow_cfs")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.