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 / assign < prev    next >
Encoding:
Text File  |  1997-04-23  |  1.2 KB  |  39 lines

  1.     
  2.     _A_s_s_i_g_n _a _V_a_l_u_e _t_o _a _N_a_m_e
  3.     
  4.          assign(x, value, envir=sys.frame(sys.parent()),
  5.                  inherits=FALSE, immediate=TRUE)
  6.     
  7.     _A_r_g_u_m_e_n_t_s:
  8.     
  9.                x : a variable name (given as a quoted string).
  10.     
  11.            value : a value to be assigned to x.
  12.     
  13.            envir : the environent in which to assign. The
  14.                    default is the environment where the call to
  15.                    assign takes place.
  16.     
  17.         inherits : should the enclosing frames of the environ-
  18.                    ment be inspected.
  19.     
  20.        immediate : an ignored compatibility feature.
  21.     
  22.     _V_a_l_u_e:
  23.     
  24.          This function is invoked for its side effect, which is
  25.          assign value to the variable x.  If no envir is speci-
  26.          fied, then the assignment takes place in the currently
  27.          active environment.
  28.     
  29.          If inherits is TRUE then parents of the supplied
  30.          environment are searched until the variable x is
  31.          encountered.  The value is then assigned in the
  32.          environment in which the variable is encountered.  If
  33.          the symbol is not encountered then assignment takes
  34.          place in the global environment.
  35.     
  36.          If inherits is FALSE then assigment takes place in the
  37.          initial frame of envir.
  38.     
  39.