Learn R Programming

dartR.spatial (version 0.78)

gl.kosman: 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)

Value

returns a matrix of [dimensions nInd(x) x nInd(x)] of kosman distances between individuals,

Arguments

x

genlight/dartR object with a unique ploidy

verbose

verbosity of the function.

Examples

Run this code
#use only five individuals and seven loci
gg <- gl.kosman(possums.gl[1:5,14:21])
gg$kosman
gg$nloci

Run the code above in your browser using DataLab