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

  1.     
  2.     _A_r_r_a_y _E_x_t_e_n_t_s
  3.     
  4.          dim(x)
  5.          dim(x) <- values
  6.     
  7.     _V_a_l_u_e:
  8.     
  9.          This function retrieves the vector of extents of the
  10.          array given as its argument.  The second form above is
  11.          used to shape a vector as an array by specifying its
  12.          extents.
  13.     
  14.     _S_e_e _A_l_s_o:
  15.     
  16.          ncol, nrow.
  17.     
  18.     _E_x_a_m_p_l_e_s:
  19.     
  20.          # simple versions of nrow and ncol
  21.          # could be defined as follows
  22.          nrow <- function(x) dim(x)[1]
  23.          ncol <- function(x) dim(x)[2]
  24.     
  25.