repool               package:adegenet               R Documentation

_P_o_o_l _s_e_v_e_r_a_l _g_e_n_o_t_y_p_e_s _i_n_t_o _t_h_e _s_a_m_e _d_a_t_a_s_e_t

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

     The function 'repool' allows to merge genotypes from different
     genind objects into a single 'pool' (i.e. a new genind). The
     markers have to be the same for all objects to be merged, but
     there is no constraint on alleles.

     This function can be useful, for instance, when hybrids are
     created using 'hybridize', to merge hybrids with their parent
     population for further analyses. Note that 'repool' can also
     reverse the action of 'seppop'.

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

     repool(...)

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

     ...: can be i) a list whose components are valid genind objects
          or, ii) several valid genind objects separated by commas.

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

     A genind object.

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

     Thibaut Jombart t.jombart@imperial.ac.uk

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

     'seploc', 'seppop'

_E_x_a_m_p_l_e_s:

     ## use the cattle breeds dataset
     data(microbov)
     temp <- seppop(microbov)
     names(temp)

     ## hybridize salers and zebu -- nasty cattle
     zebler <- hybridize(temp$Salers, temp$Zebu, n=40)
     zebler

     ## now merge zebler with other cattle breeds
     nastyCattle <- repool(microbov, zebler)
     nastyCattle

