

   Control {base}                               R Documentation

   CCoonnttrrooll FFllooww

   DDeessccrriippttiioonn::

        These are the basic control-flow constructs of the R
        language.  They function in much the same way as con-
        trol statements in any algol-like language.

   UUssaaggee::

        if(cond) expr
        if(cond) cons.expr  else  alt.expr
        for(var in seq) expr
        while(cond) expr
        repeat expr
        break
        next

   SSeeee AAllssoo::

        `ifelse', `switch'.

   EExxaammpplleess::

        for(i in 1:5) print(1:i)

