Re: [R] Looping through multiple datasets already in memory

2011-09-09 Thread MatAra
Thanks for the valuable comments Greg and Patrick! Oddly enough, I am doing something very close to "Portfolio analysis with random selection"... Justin, thanks for recommending google - fantastic stuff. Cheers, Mateo -- View this message in context: http://r.789695.n4.nabble.com/Looping-throug

Re: [R] Looping through multiple datasets already in memory

2011-09-09 Thread William Dunlap
oftware wdunlap tibco.com > -Original Message----- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf Of Greg Snow > Sent: Friday, September 09, 2011 2:31 PM > To: MatAra; r-help@r-project.org > Subject: Re: [R] Looping through multiple datas

Re: [R] Looping through multiple datasets already in memory

2011-09-09 Thread Greg Snow
The best approach is to put all those datasets into a list, then you can loop through the elements of the list, or use lapply or sapply on the list. If you insist on keeping them outside of a list, or need a loop to put them into the list, then look at the 'get' function. -Original Message-