ts_trend: Loess Trend Estimation

Description Usage Arguments Examples

View source: R/ts_trend.R

Description

Trend estimation that uses stats::loess().

Usage

1

Arguments

x

ts-boxable time series, an object of class ts, xts, zoo, data.frame, data.table, tbl, tbl_ts, tbl_time, or timeSeries.

...

arguments, passed to stats::loess():

  • degree degree of Loess smoothing

  • span smoothing parameter, if NULL, an automated search performed (see Details)

Examples

1
2
3
4
5
6
ts_plot(
   `Raw series` = fdeaths, 
   `Loess trend` = ts_trend(fdeaths),
   title = "Deaths from Lung Diseases",
   subtitle = "per month"
)

christophsax/tsbox documentation built on June 26, 2018, 1:13 p.m.