Re: [R] Assign name to object for each iteration in a loop.

2011-12-03 Thread Patrick Connolly
On Thu, 01-Dec-2011 at 10:13AM -0800, lglew wrote: |> Hi R-users, |> |> I'm trying to produce decompositions of a multiple time-series, grouped by a |> factor (called "area"). I'm modifying the code in the STLperArea function of |> package ndvits, as this function only plots produces stl plots, i

Re: [R] Assign name to object for each iteration in a loop.

2011-12-01 Thread David Winsemius
On Dec 1, 2011, at 1:13 PM, lglew wrote: Hi R-users, I'm trying to produce decompositions of a multiple time-series, grouped by a factor (called "area"). I'm modifying the code in the STLperArea function of package ndvits, as this function only plots produces stl plots, it does not retu

Re: [R] Assign name to object for each iteration in a loop.

2011-12-01 Thread lglew
Thanks Michael! Yeah, that dealt with one of the problems. I still get the following error message: Error in cat(list(...), file, sep, fill, labels, append) : argument 1 (type 'list') cannot be handled by 'cat' I know that this has something to do with writing the names of the output file, an

Re: [R] Assign name to object for each iteration in a loop.

2011-12-01 Thread R. Michael Weylandt
I think part of your problem is the loop: you probably mean for(i in unique(area)) Michael On Thu, Dec 1, 2011 at 1:13 PM, lglew wrote: > Hi R-users, > > I'm trying to produce decompositions of a multiple time-series, grouped by a > factor (called "area"). I'm modifying the code in the STLperA

[R] Assign name to object for each iteration in a loop.

2011-12-01 Thread lglew
Hi R-users, I'm trying to produce decompositions of a multiple time-series, grouped by a factor (called "area"). I'm modifying the code in the STLperArea function of package ndvits, as this function only plots produces stl plots, it does not return the underlying data. I want to extract the tren