[R] iterating through for loop
sagarnikam123
sagarnikam123 at gmail.com
Fri Feb 3 10:31:58 CET 2012
how to iterate two elements each through for loop?
e.g. x<-c(1,2,4,7,34,6)
y<-c(3,5,6,9,34,7)
for(z in x){
print(paste(z,y)) }
i want both element of vector iterate serially with same position
--
View this message in context: http://r.789695.n4.nabble.com/iterating-through-for-loop-tp4354101p4354101.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list