View source: R/gl.propShared.r
gl.propShared | R Documentation |
This script calculates an individual based distance matrix. It uses an C++ implementation, so package Rcpp needs to be installed and it is therefore really fast (once it has compiled the function after the first run).
gl.propShared(x)
x |
Name of the genlight containing the SNP genotypes [required]. |
A similarity matrix
Bernd Gruber (Post to https://groups.google.com/d/forum/dartr)
#takes some time at the first run of the function...
## Not run:
res <- gl.propShared(bandicoot.gl)
res[1:5,1:7] #show only a small part of the matrix
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.