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

  1.     
  2.     _L_i_s_t _O_b_j_e_c_t_s
  3.     
  4.          ls(name, pos=2, envir=sys.frame(sys.parent()),
  5.                 all.names=FALSE, pattern)
  6.          objects(name, pos=2, envir=sys.frame(sys.parent()),
  7.                 all.names=FALSE, pattern)
  8.     
  9.     _A_r_g_u_m_e_n_t_s:
  10.     
  11.             name : the name of an attached object appearing in
  12.                    the vector of names returned by search.
  13.     
  14.              pos : the index of an attached object in the list
  15.                    returned by search.
  16.     
  17.            envir : an evaluation environment.
  18.     
  19.        all.names : a logical value.  If TRUE, all object names
  20.                    are returned.  If FALSE names which begin
  21.                    with a ``.'' are omitted.
  22.     
  23.          pattern : an optional regular expression.  Only names
  24.                    matching pattern are returned.
  25.     
  26.     _D_e_s_c_r_i_p_t_i_o_n:
  27.     
  28.          ls and objects return a vector of character strings
  29.          giving the names of the objects in the specified
  30.          environment.  When invoked with no argument at the top
  31.          level prompt, ls shows what data sets and functions a
  32.          user has defined.  When invoked with no argument inside
  33.          a function, ls returns the names of the functions local
  34.          variables.  This is useful in conjunction with browser.
  35.     
  36.