Re: [R] Use a variable of a list in a loop

2010-04-07 Thread rusers.sh
Cool. Using [[var]] instead of $var to extract the expected variable is really what i want. Thanks. Guys. 2010/4/7 Steve Lianoglou > Hi, > > On Wed, Apr 7, 2010 at 6:27 PM, rusers.sh wrote: > > Hi all, > > My problem may be related with the list manipulations. See below. > > #example data > >

Re: [R] Use a variable of a list in a loop

2010-04-07 Thread Steve Lianoglou
Hi, On Wed, Apr 7, 2010 at 6:27 PM, rusers.sh wrote: > Hi all, >  My problem may be related with the list manipulations. See below. > #example data >  a<-list() >  a[[1]]<-data.frame(matrix(c(1:4),ncol=2)); > a[[2]]<-data.frame(matrix(c(5:8),ncol=2)) >  I can use a[[1]]$X1,a[[1]]$X2,a[[2]]$X1,a[[