Skip to content
Prev 83307 / 398506 Next

loop

Your loop will store results of count =6 because
every time the loop executes the results are put in
qw so you replace the previous results.  On the other
hand the results of count=1 is not extracted you basicaly
start at 2.

My advice is you initialize qw before the loop and stack the results
one after the other e.g.

 qw <-NULL
 count<-1
  repeat{
 qw<-c(qw,  c(g[count],1:i[count]) )
  count<-count + 1
  if(count>5) break
 }

Kind regards
Anthony Gichangi

----- Original Message ----- 
From: "gynmeerut" <gynmeerut at indiatimes.com>
To: <r-help at stat.math.ethz.ch>
Sent: Thursday, December 29, 2005 1:41 PM
Subject: [R] loop