search for: tp15135671p15135671

Displaying 1 result from an estimated 1 matches for "tp15135671p15135671".

2008 Jan 28
1
R loops
...ed the loop. What am I doing wrong? Thanks! > test<-numeric(20) > tot<-numeric(20) > for(i in 1:20){test[i]<-1} > for (i in 1:20){tot[i]<-(test[i]+tot[i])} > tot [1] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 -- View this message in context: http://www.nabble.com/R-loops-tp15135671p15135671.html Sent from the R help mailing list archive at Nabble.com.