Rev 230 | Rev 19281 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{Control}\title{Control Flow}\usage{if(cond) exprif(cond) cons.expr else alt.exprfor(var in seq) exprwhile(cond) exprrepeat exprbreaknext}\alias{if}\alias{else}\alias{for}\alias{while}\alias{repeat}\alias{break}\alias{next}\description{These are the basic control-flow constructs of the \R language.They function in much the same way as control statementsin any algol-like language.}\seealso{\code{\link{ifelse}},\code{\link{switch}}.}\examples{for(i in 1:5) print(1:i)}\keyword{programming}\keyword{iteration}\keyword{logic}