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

  1.     
  2.     _T_h_e _N_a_m_e_s _A_t_t_r_i_b_u_t_e _o_f _a_n _O_b_j_e_c_t
  3.     
  4.          names(x)
  5.          names(x) <- value
  6.     
  7.     _D_e_s_c_r_i_p_t_i_o_n:
  8.     
  9.          names provides access to the names attribute of a vec-
  10.          tor.  The first form prints the names of the observa-
  11.          tions and the second sets the names.  In this case,
  12.          value must be a vector of character strings of the same
  13.          length as x.
  14.     
  15.     _E_x_a_m_p_l_e_s:
  16.     
  17.          # print the names attribute of the islands data set
  18.          names(islands)
  19.     
  20.          # remove the names attribute
  21.          names(islands) <- NULL
  22.     
  23.