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

  1.     
  2.     _M_u_l_t_i-_w_a_y _A_r_r_a_y_s
  3.     
  4.          array(x, dim=length(x), dimnames=NULL)
  5.     
  6.          as.array(x)
  7.          is.array(x)
  8.     
  9.     _V_a_l_u_e:
  10.     
  11.          An array with the extents specified in dim and naming
  12.          information in dimnames.  The values in x are taken to
  13.          be those in the array with the leftmost subscript mov-
  14.          ing fastest.  If there are too few elements in x to
  15.          fill the array, then the elements in x are recycled.
  16.     
  17.          as.array coerces its argument to be an array by attach-
  18.          ing a dim attribute to it.  The sole purpose of this is
  19.          to make it possible to access the dim attribute at a
  20.          later time.
  21.     
  22.          is.array returns TRUE or FALSE depending on whether its
  23.          argument is an array (i.e. has a dim attribute) or not.
  24.     
  25.     _S_e_e _A_l_s_o:
  26.     
  27.          aperm, matrix.
  28.     
  29.     _E_x_a_m_p_l_e_s:
  30.     
  31.          dim(as.array(letters))
  32.     
  33.