row.names                package:base                R Documentation

_G_e_t _a_n_d _S_e_t _R_o_w _N_a_m_e_s _f_o_r _D_a_t_a _F_r_a_m_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     All data frames have a row names attribute, a character vector of
     length the number of rows with no duplicates nor missing values.

     For convenience, these are generic functions for which users can
     write other methods, and there are default methods for arrays. 
     The description here is for the 'data.frame' method.

_U_s_a_g_e:

     row.names(x)
     row.names(x) <- value

_A_r_g_u_m_e_n_t_s:

       x: object of class '"data.frame"', or any other class for which
          a method has been defined.

   value: a vector with the same length as the number of rows of 'x',
          to be coerced to character.  Duplicated or missing values are
          not allowed.

_V_a_l_u_e:

     'row.names' returns a character vector.

     'row.names<-' returns a data frame with the row names changed.

_N_o_t_e:

     'row.names' is similar to 'rownames' for arrays, and it has a
     method that calls 'rownames' for an array argument.

_R_e_f_e_r_e_n_c_e_s:

     Chambers, J. M. (1992) _Data for models._ Chapter 3 of
     _Statistical Models in S_ eds J. M. Chambers and T. J. Hastie,
     Wadsworth & Brooks/Cole.

_S_e_e _A_l_s_o:

     'data.frame', 'rownames'.

