Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

build.ext.nblist

Internal: generates neighborhood list for diploid loci


Description

This is for use in alleleinit. Given a neighborhood list of individuals, a new neighborhood list is generated in which there are two entries for each individual (entry 1 and 2 refer to individual one, 3 and 4 to individual 2 and so on). Neighborhoods are preserved and additionally the two entries belonging to the same individual are marked as neighbors.

Usage

build.ext.nblist(neighbors,n.individuals=length(neighbors))

Arguments

neighbors

list of integer vectors, where each vector contains the neighbors of an individual.

n.individuals

integer. Number of individuals.

Value

list with 2*n.inidividuals vectors of integers as described above.

Author(s)

See Also

Examples

data(veronica)
  vnb <- coord2dist(coordmatrix=veronica.coord[1:20,], cut=20,
    file.format="decimal2",neighbors=TRUE)
  build.ext.nblist(vnb$nblist)

prabclus

Functions for Clustering and Testing of Presence-Absence, Abundance and Multilocus Genetic Data

v2.3-2
GPL
Authors
Christian Hennig <christian.hennig@unibo.it>, Bernhard Hausdorf <Hausdorf@zoologie.uni-hamburg.de>
Initial release
2020-01-06

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.