Learn R Programming

seasonal (version 0.20.2)

spc: Extractor Functions for seas Elements and Series

Description

These functions extract elements or series from a "seas" object.

Usage

spc(x)

mdl(x)

out(x)

final(x)

original(x)

trend(x)

irregular(x)

Arguments

x
an object of class "seas".

Value

  • return an element or a series, depending on the function

See Also

seas for the main function.

Examples

Run this code
x <- seas(AirPassengers)

final(x)
original(x)
irregular(x)
trend(x)

spc(x)  # X13-ARIMA-SEATS .spc file
mdl(x)  # X13-ARIMA-SEATS .mdl file

# out(x)  # returns an error
x2 <- seas(AirPassengers, out = TRUE)
out(x2)    # this works: X13-ARIMA-SEATS .out file

Run the code above in your browser using DataLab