POR_deseasonalize {HyMETT} | R Documentation |
Removes seasonal trends from a daily or monthly time series.
Description
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.
Usage
POR_deseasonalize(data = NULL, Date, value, time_step = c("daily", "monthly"))
Arguments
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 |
Details
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.
Value
Deseasonalized values.
See Also
Examples
POR_deseasonalize(data = example_obs, Date = "Date", value = "streamflow_cfs")