m2c             package:ffmanova             R Documentation(latin1)

_C_o_n_v_e_r_s_i_o_n _b_e_t_w_e_e_n _m_a_t_r_i_c_e_s _a_n_d _p_a_r_t_i_t_i_o_n_e_d _m_a_t_r_i_c_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     Functions to convert a matrix to a list of partitioned matrices,
     and back again.

_U_s_a_g_e:

     m2c(M, df = rep(1, dim(M)[2]))
     c2m(CC)
     c2df(CC)

_A_r_g_u_m_e_n_t_s:

       M: matrix to be partitioned according to 'df'

      df: integer vector.  See Details

      CC: list of matrices, typically the output of 'm2c'

_D_e_t_a_i_l_s:

     'm2c' partitions a matrix into a list of matrices, by putting the
     first 'df[1]' coloumns into the first matrix, the next 'df[2]'
     coloumns into the second, etc.

     'c2m' joins a partitioned matrix back into a single matrix.
     'c2m(m2c(X, df))' equals 'X'.

     'c2df' takes a list of matrices and returns a vector with the
     number of coloumns of the matrices.

_V_a_l_u_e:

     'm2c' returns a list of matrices.

     'c2m' returns a matrix.

     'c2df' returns a numeric vector.

_N_o_t_e:

     'sum(df)' must equal 'ncol(X)'.

_A_u_t_h_o_r(_s):

     yvind Langsrud and Bjrn-Helge Mevik

_S_e_e _A_l_s_o:

     'ffmanova'

