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. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.