incomp | R Documentation |
If two samples share no loci typed in common, they are incomparable and will produce missing data in a distance matrix, which could lead to problems with further analyses. This function finds these samples and returns a matrix of how many other samples these are incomparable with.
incomp(gid)
gid |
a genind or genclone object |
a square matrix with samples that are incomparable
data(nancycats)
# These two populations have no samples that are incomparable
incomp(nancycats[pop = c(1, 17)])
# If you reduce the number of loci, we find that there are
# incomparable samples.
incomp(nancycats[pop = c(1, 17), loc = c(1, 4)])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.