smoothdaily | R Documentation |
Smoothes an time series x on daily basis
smoothdaily(x, upperbound = NULL)
x |
An xts object. |
upperbound |
(Optional) A numeric value giving the threshold below which smoothing is performed. |
Smoothing is performed if no value within the processed day exeeds upperbound. Smoothing is done by (max(x)+min(x))/2
.
A smoothed xts with daily time steps.
Simon Frey
data(runoff)
x <- smoothdaily(runoff[,1])
x <- smoothdaily(runoff[,1], upperbound = quantile(runoff[,1], 0.66))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.