mergelist               package:happy               R Documentation

_C_r_e_a_t_e _a_n _o_b_j_e_c_t _d_e_s_c_r_b_i_n_g _h_o_w _t_o _m_e_r_g_e _s_t_r_a_i_n_s _t_o_g_e_t_h_e_r

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

     mergelist() is a convenience function which creates a list object
     suitable for use with mergematrices()

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

      mergelist( strains, alleles )

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

 strains: a character vector of strain names

 alleles: a character matrix with one row of strain/allele
          combinations. There must be a named column in the matrix
          corresponding to every strain name in strains. The value of
          the element is the allele for that strain

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

     a list of lists of strains describing how the strains are grouped
     together. For instance 'mergelist <- list( A=list('AJ', 'BALB',
     'AKR'), T=list('RIII','I', 'DBA', 'C57', 'C3H') )' divides the
     strains into two groups corresponding to the alleles A, T (the
     allele names are not important). It is essential that the all
     strain names match all the values in strains.

     The object should be used as an input parameter to mergematrices()

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

     Richard Mott

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

     mergematrices()

