[R] automatically generate the output name of my "for" loops

jiliguala jiliguala at mail.com
Mon Jun 13 18:29:52 CEST 2011


hi, really thank u, Petr Pikal

problem solved already.

but here is another question:

for(i in 1:100)	
data1[[i]] <- rbind(data2[1,], data3[i,])

the codes above are no problem, 
but now i wnna do two loops like the codes below which have problem(the bold
letters):
i dont know what should be put in the bold letters place.

for (j in 1:10)
for (i in 1:100)
data1[[i]][[j]] <- rbind(data2[j,], data3[i,])


thanks for helping.

daniel






--
View this message in context: http://r.789695.n4.nabble.com/automatically-generate-the-output-name-of-my-for-loops-tp3592160p3594243.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list