\name{gcode}
\alias{gcode}
\title{
  Numeric Code for Genotypes
}
\description{
For a one-locus genotype, composed of two vectors of
alleles, create a single vector of numeric codes that
represent the genotypes.
}
\usage{
gcode(a1, a2)
}
\arguments{

\item{a1}{
Vector of "first" alleles.
}
\item{a2}{
Vector of "second" alleles.
}
}
\value{
Vector of integer codes for genotypes.
}
\section{Side Effects}{

}
\details{
Alleles are assumed to be coded as rank order (see
allele.recode).
}
\section{References}{
Zaykin 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.
}
\seealso{
ungcode, allele.recode, geno.recode
}
\examples{

}
\keyword{}
% docclass is function
% Converted by Sd2Rd version 43267.
