Re: [R] Automatically naming subsets in a for loop

2014-01-31 Thread denys
Thank you very much ! -- View this message in context: http://r.789695.n4.nabble.com/Automatically-naming-subsets-in-a-for-loop-tp4684518p4684524.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https

[R] Automatically naming subsets in a for loop

2014-01-31 Thread denys
Hello, I'm trying to subet my data based on long/lat. I have written a for loop however I am not sure how to get R to name all my subsets different things. Here is my code so far... for(i in 0:31){ latl=38+(i*1) latu=39+(i*1) for(j in 0:33){ longl=(-72)+(j*1) longu=(-71)+(j*1) G$i$j<-subset(G, La