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 / length < prev    next >
Encoding:
Text File  |  1997-04-23  |  478 b   |  17 lines

  1.     
  2.     _L_e_n_g_t_h _o_f _a _V_e_c_t_o_r _o_r _L_i_s_t
  3.     
  4.          length(x)
  5.          length(x) <- n
  6.     
  7.     _D_e_s_c_r_i_p_t_i_o_n:
  8.     
  9.          If x is a vector or list length returns the length of
  10.          x.  Otherwise, length returns NA.
  11.     
  12.          The second form above can be used to reset the length
  13.          of a vector.  If a vector is shortened, extra values
  14.          are discarded and when a vector is lengthened, it is
  15.          padded out to its new length with NAs.
  16.     
  17.