home *** CD-ROM | disk | FTP | other *** search
-
- _F_u_n_c_t_i_o_n _C_a_l_l_s
-
- call(name, ...)
-
- is.call(expr)
- as.call(expr)
-
- _V_a_l_u_e:
-
- An unevaluated function call, that is, an unevaluated
- expression which consists of the named function applied
- to the given arguments (name must be a quoted string
- which gives the name of a function to be called).
-
- is.call is used to determine whether expr is a call.
- We don't differentiate between expressions and function
- calls. So is.call is the same as is.expression.
-
- It is not possible to coerce objects to mode call
- (objects either are calls or they are not calls).
- as.call returns its argument if it is a call and other-
- wise terminated with an error message.
-
- _E_x_a_m_p_l_e_s:
-
- # set up a function call to round with argument 10.5
- call("round",10.5)
- round(10.5)
-
- # such a call can also be evaluated.
- eval(call("round",10.5))# [1] 10
-
-