build.ext.nblist | R Documentation |
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.
build.ext.nblist(neighbors,n.individuals=length(neighbors))
neighbors |
list of integer vectors, where each vector contains the neighbors of an individual. |
n.individuals |
integer. Number of individuals. |
list with 2*n.inidividuals
vectors of integers as described
above.
Christian Hennig christian.hennig@unibo.it https://www.unibo.it/sitoweb/christian.hennig/en
alleleinit
data(veronica)
vnb <- coord2dist(coordmatrix=veronica.coord[1:20,], cut=20,
file.format="decimal2",neighbors=TRUE)
build.ext.nblist(vnb$nblist)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.