Dear all R users,
   
  Suppose I have a data frame "data" like this:
   
  5/2/2006      36560
 5/3/2006     36538
 5/4/2006     36452
 5/5/2006     36510
 5/8/2006     36485
 5/9/2006     36502
 5/10/2006     36584
 5/11/2006    36571
   
  Now I want to create a for loop like this:
   
  date = "5/10/2006"
for (i in 1: 8)
   {
    if (data[i,1] > date) break
   }
   
  But I get error while executing this. Can anyone tell me the right way to do this?
   
  Sincerely yours
  stat

 Send instant messages to your online friends http://in.messenger.yahoo.com 

 Stay connected with your friends even when away from PC.  Link: http://in.mobile.yahoo.com/new/messenger/  
	[[alternative HTML version deleted]]

