Converts a vcfR object to a matrix of pairwise genetic distances.

gen2dist(vcf, biallelic = FALSE)

Arguments

vcf

object of class data.frame.

biallelic

logical describing whether the data is biallelic or not (default).

Value

gen2dist(x) returns an object of class distancecontaining a matrix of pairwise genetic distances.