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? Thanks. -- View this message in context: nabble.com/extract-trend-data-from-stl-tp21954844p21954844.html Sent from the R help mailing list archive at Nabble.com.
?stl -Roy On Feb 11, 2009, at 5: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? > > Thanks. > -- > View this message in context: nabble.com/extract-trend-data-from-stl-tp21954844p21954844.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.********************** "The contents of this message do not reflect any position of the U.S. Government or NOAA." ********************** Roy Mendelssohn Supervisory Operations Research Analyst NOAA/NMFS Environmental Research Division Southwest Fisheries Science Center 1352 Lighthouse Avenue Pacific Grove, CA 93950-2097 e-mail: Roy.Mendelssohn at noaa.gov (Note new e-mail address) voice: (831)-648-9029 fax: (831)-648-8440 www: pfeg.noaa.gov "Old age and treachery will overcome youth and skill." "From those who have been given much, much will be expected"
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