dist.gene(x, method = "pairwise", pairwise.deletion = FALSE, variance = FALSE)"pairwise" and
"percentage", or any unambiguous abbreviation of these.FALSE).dist. If variance = TRUE an
attribute called "variance" is given to the returned object.
In the case of the pairwise method, the distance $d$ between two individuals is the number of loci for which they differ, and the associated variance is $d(L - d)/L$, where $L$ is the number of loci.
In the case of the percentage method, this distance is divided by $L$, and the associated variance is $d(1 - d)/L$.
For more elaborate distances with DNA sequences, see the function
dist.dna.
dist.dna, cophenetic.phylo,
dist