ligges at statistik.uni-dortmund.de
Sun Jul 18 20:00:32 CEST 2004
bob mccall wrote:
> I'm using the time series decomposition routine "stl" from the package "stats".
> But how do I get the results into a vector to work with them?
> This lists the output but can't figure out how to extract the individual series like seasonal, trend, irregular.
There are two ways:
Either use str(m) to look at the structure of the object or read the
help page ?stl which tells you that
... 'stl returns an object of class "stl" with components
time.series a multiple time series with columns
seasonal, trend and remainder.' ...
I don't know whether there are any specific extractor methods, but to
extract the decomposed seasonal values, you can simply write:
> [[alternative HTML version deleted]]
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
More information about the R-help