home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Educational / R-0.49-MI / R-0.49-I / help / base / call < prev    next >
Encoding:
Text File  |  1997-04-23  |  987 b   |  34 lines

  1.     
  2.     _F_u_n_c_t_i_o_n _C_a_l_l_s
  3.     
  4.          call(name, ...)
  5.     
  6.          is.call(expr)
  7.          as.call(expr)
  8.     
  9.     _V_a_l_u_e:
  10.     
  11.          An unevaluated function call, that is, an unevaluated
  12.          expression which consists of the named function applied
  13.          to the given arguments (name must be a quoted string
  14.          which gives the name of a function to be called).
  15.     
  16.          is.call is used to determine whether expr is a call.
  17.          We don't differentiate between expressions and function
  18.          calls.  So is.call is the same as is.expression.
  19.     
  20.          It is not possible to coerce objects to mode call
  21.          (objects either are calls or they are not calls).
  22.          as.call returns its argument if it is a call and other-
  23.          wise terminated with an error message.
  24.     
  25.     _E_x_a_m_p_l_e_s:
  26.     
  27.          # set up a function call to round with argument 10.5
  28.          call("round",10.5)
  29.          round(10.5)
  30.     
  31.          # such a call can also be evaluated.
  32.          eval(call("round",10.5))# [1] 10
  33.     
  34.