genot2al              package:hierfstat              R Documentation

_S_e_p_a_r_a_t_e_s _d_i_p_l_o_i_d _g_e_n_o_t_y_p_e_s _i_n _i_t_s _c_o_n_s_t_i_t_u_a_n_t _a_l_l_e_l_e_s

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

     Separates the input vector of diploid genotypes in two vectors
     each containing one allele, and returns a vector of length
     '2*length(y)' with the second part being the second allele

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

     genot2al(y)

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

       y: the diploid genotypes at one locus

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

     returns a vector of length '2*length(y)', with the second half of
     the vector containing the second alleles

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

     Jerome Goudet, DEE, UNIL,  CH-1015 Lausanne Switzerland 

     jerome.goudet@unil.ch

_R_e_f_e_r_e_n_c_e_s:

     Goudet J. (2004). A library for R to compute and test variance
     components and F-statistics. In Prep

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

     'varcomp'.

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

     data(gtrunchier)
     genot2al(gtrunchier[,4])

