Learn R Programming

forecast (version 8.17.0)

seasadj: Seasonal adjustment

Description

Returns seasonally adjusted data constructed by removing the seasonal component.

Usage

seasadj(object, ...)

# S3 method for stl seasadj(object, ...)

# S3 method for mstl seasadj(object, ...)

# S3 method for decomposed.ts seasadj(object, ...)

# S3 method for tbats seasadj(object, ...)

# S3 method for seas seasadj(object, ...)

Value

Univariate time series.

Arguments

object

Object created by decompose, stl or tbats.

...

Other arguments not currently used.

Author

Rob J Hyndman

See Also

stl, decompose, tbats.

Examples

Run this code
plot(AirPassengers)
lines(seasadj(decompose(AirPassengers,"multiplicative")),col=4)

Run the code above in your browser using DataLab