[R] extract trend data from stl

Duncan Murdoch murdoch at stats.uwo.ca
Wed Feb 11 20:09:30 CET 2009


On 2/11/2009 8:39 AM, doloop wrote:
> I am using the stl function to decompose a time series.  I want to access the
> trend data hopefully by placing it into a separate vector.  How do I do
> that?

After you have run the example(stl) code, the three series are the three 
columns of sts.  The trend is sts[,"trend"].

Duncan Murdoch




More information about the R-help mailing list