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 / cbind < prev    next >
Encoding:
Text File  |  1997-04-23  |  952 b   |  32 lines

  1.     
  2.     _C_o_m_b_i_n_e _C_o_l_u_m_n_s _i_n_t_o _a _M_a_t_r_i_x
  3.     
  4.          cbind(...)
  5.     
  6.     _V_a_l_u_e:
  7.     
  8.          cbind takes a sequence of vector and/or matrix argu-
  9.          ments and combines them as the columns of a matrix.
  10.     
  11.          If there are several matrix arguments, they must all
  12.          have the same number of rows and this will be the
  13.          number of rows of the result.  If all the arguments are
  14.          vectors, the number of rows in the result is equal to
  15.          the length of the longest vector.  Values in shorter
  16.          arguments are recycled to achieve this length.
  17.     
  18.          When the arguments consist of a mix of matrices and
  19.          vectors the number of rows of the result is determined
  20.          by the number of rows of the matrix arguments.  Any
  21.          vectors have their values recycled or subsetted to
  22.          achieve this length.
  23.     
  24.     _S_e_e _A_l_s_o:
  25.     
  26.          c, rbind.
  27.     
  28.     _E_x_a_m_p_l_e_s:
  29.     
  30.          cbind(1,1:n)
  31.     
  32.