Re: [R] Defining different objects within a loop

2009-08-03 Thread Deepayan Sarkar
On Thu, Jul 30, 2009 at 3:09 PM, jimdare wrote: > > Dear R Users, > > I have a dataset that I have split by group.  For each group I plot a figure > using: > > for (i in splitdf){ > plot<-xyplot() > print(plot) > savePlot(filename=paste(i$Group[1]),type="pdf") > } > > This gives me

[R] Defining different objects within a loop

2009-07-30 Thread jimdare
Dear R Users, I have a dataset that I have split by group. For each group I plot a figure using: for (i in splitdf){ plot<-xyplot() print(plot) savePlot(filename=paste(i$Group[1]),type="pdf") } This gives me X pdf files where X is the number of groups. Does anyone know a simple