

Control {base}                               R Documentation

_C_o_n_t_r_o_l _F_l_o_w

_D_e_s_c_r_i_p_t_i_o_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_s_a_g_e_:

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

_S_e_e _A_l_s_o_:

     `ifelse', `switch'.

_E_x_a_m_p_l_e_s_:

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

