Learn R Programming

mateable (version 0.3.2)

pairDist: Distance Matrix for a mating scene

Description

Compute all pairwise distances for a population. This function is simply a wrapper for dist that returns only a matrix

Usage

pairDist(scene)

Value

a matrix of all pairwise comparisons with attributes for order of identifiers (idOrder)

Arguments

scene

a matingScene object

See Also

Examples

Run this code
pop <- simulateScene()
distance <- pairDist(pop)

Run the code above in your browser using DataLab