gcode              package:haplo.score              R Documentation

_N_u_m_e_r_i_c _C_o_d_e _f_o_r _G_e_n_o_t_y_p_e_s

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

     For a one-locus genotype, composed of two vectors of alleles,
     create a single vector of numeric codes that represent the
     genotypes.

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

     gcode(a1, a2)

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

      a1: Vector of "first" alleles. 

      a2: Vector of "second" alleles. 

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

     Alleles are assumed to be coded as rank order (see allele.recode).

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

     Vector of integer codes for genotypes.

_S_i_d_e _E_f_f_e_c_t_s:

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

     Zykin D., Zhivotovsky L. and  Weir  B,  "Exact tests for
     association  between alleles at arbitrary numbers of loci" Human
     Identification: The Use of DNA Markers, 169-178, 1995.

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

     ungcode, allele.recode, geno.recode

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

