gl.kosman {dartR.spatial} | R Documentation |
Calculates a Kosman distance matrix for each pair of individuals
Description
This script calculates an individual based distance matrix.
Usage
gl.kosman(x, verbose = NULL)
Arguments
x |
genlight/dartR object with a unique ploidy |
verbose |
verbosity of the function. |
Value
returns a matrix of [dimensions nInd(x) x nInd(x)] of kosman distances between individuals,
Examples
#use only five individuals and seven loci
gg <- gl.kosman(possums.gl[1:5,14:21])
gg$kosman
gg$nloci
[Package dartR.spatial version 0.78 Index]