Paren                  package:base                  R Documentation

_P_a_r_e_n_t_h_e_s_e_s _a_n_d _B_r_a_c_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     Open parenthesis, `(', and open brace, `{', are `.Primitive'
     functions in R.

     Effectively, `(' is semantically equivalent to the identity
     `function(x) x', whereas `{' is slightly more interesting, see
     examples.

_U_s_a_g_e:

     ( ... )

     { ... }

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

     `if', `return', etc for other objects used in the R language
     itself.

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

     f <- get("(")
     e <- expression(3 + 2 * 4)
     f(e) == e           # TRUE

     do <- get("{")
     do(x_ 3, y_ 2*x-3, 6-x-y); x; y

