Re: [R] Creating a list of combinations

2009-08-20 Thread baptiste auguie
the short answer is to add [[i]] in your loop, file_list[[i]] <- paste(index$month[i], index$year[i], sep='') yet a shorter answer would be, file_list = apply(index, 1, paste, collapse="") HTH, baptiste 2009/8/20 Steve Murray : > > Dear R Users, > > I have 120 objects stored in R's memory and

[R] Creating a list of combinations

2009-08-20 Thread Steve Murray
Dear R Users, I have 120 objects stored in R's memory and I want to pass the names of these many objects to be held as just one single object. The naming convention is month, year in sequence for all months between January 1986 to December 1995 (e.g. Jan86, Feb86, Mar86... through to Dec95). I