[R] simple for loop question - how do you exit?

Chuck Cleland ccleland at optonline.net
Thu Apr 23 20:37:13 CEST 2009


On 4/23/2009 2:29 PM, dre968 wrote:
> I have a loop and an if statement in the loop.  once the if statement is true
> for 1 value in the loop i'd like to exit the loop.  is there a command to do
> this?  i know its going to be something like exit and i feel stupid asking
> this question

  Type ?"if" at the R prompt, which should load the help page for
"Control Flow".

-- 
Chuck Cleland, Ph.D.
NDRI, Inc. (www.ndri.org)
71 West 23rd Street, 8th floor
New York, NY 10010
tel: (212) 845-4495 (Tu, Th)
tel: (732) 512-0171 (M, W, F)
fax: (917) 438-0894




More information about the R-help mailing list