smoothdaily: Smooth a time series on daily basis

View source: R/smoothxts.r

smoothdailyR Documentation

Smooth a time series on daily basis

Description

Smoothes an time series x on daily basis

Usage

smoothdaily(x, upperbound = NULL)

Arguments

x

An xts object.

upperbound

(Optional) A numeric value giving the threshold below which smoothing is performed.

Details

Smoothing is performed if no value within the processed day exeeds upperbound. Smoothing is done by (max(x)+min(x))/2.

Value

A smoothed xts with daily time steps.

Author(s)

Simon Frey

Examples

data(runoff)
x <- smoothdaily(runoff[,1])
x <- smoothdaily(runoff[,1], upperbound = quantile(runoff[,1], 0.66))

freysimon/TigR documentation built on Jan. 26, 2024, 9:01 a.m.