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

  1.     
  2.     _C_r_e_a_t_e _a _M_a_t_r_i_x
  3.     
  4.          matrix(data=NA, nrow=1, ncol=1, byrow=FALSE)
  5.          as.matrix(x)
  6.          is.matrix(x)
  7.     
  8.     _D_e_s_c_r_i_p_t_i_o_n:
  9.     
  10.          matrix creates a matrix from the given set of values.
  11.          nrow gives the desired number of rows and ncol the
  12.          desired number of columns.  If either of nrow or ncol
  13.          is not given, an attempt is made to infer it from the
  14.          length of data and the other parameter.  If byrow is
  15.          FALSE (the default) the matrix is filled by columns,
  16.          otherwise the matrix is filled by rows.
  17.     
  18.          as.matrix attempts to turn its argument into a matrix.
  19.          This function is generic.
  20.     
  21.          is.matrix returns TRUE if x is an matrix (i.e. it has a
  22.          dim attribute of length 2) and FALSE otherwise.
  23.     
  24.