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

  1.     
  2.     _A_r_r_a_y _L_a_b_e_l_s
  3.     
  4.          dimnames(x)
  5.          dimnames(x) <- nlist
  6.     
  7.     _V_a_l_u_e:
  8.     
  9.          This function obtains the list of extent labels of the
  10.          array given as its argument.  The second form above can
  11.          be used to set these labels.
  12.     
  13.     _S_e_e _A_l_s_o:
  14.     
  15.          rownames, colnames.
  16.     
  17.     _E_x_a_m_p_l_e_s:
  18.     
  19.          # simple versions of rownames and colnames
  20.          # could be defined as follows
  21.          rownames <- function(x) dimnames(x)[1]
  22.          colnames <- function(x) dimnames(x)[2]
  23.     
  24.