View source: R/classes_methods.R
OneAllelePerMarker | R Documentation |
This function exists primarily to be called by functions such as
AddPCA
and GetWeightedMeanGenotypes
that may need to exclude one allele per locus to avoid mathematical
singularities. For a "RADdata"
object, it returns
the indices of one allele per locus.
OneAllelePerMarker(object, ...)
## S3 method for class 'RADdata'
OneAllelePerMarker(object, commonAllele = FALSE, ...)
object |
A |
commonAllele |
If |
... |
Additional arguments (none implemented). |
An integer vector indicating the index of one allele for each locus
in object
.
Lindsay V. Clark
GetTaxa
for a list of accessors.
data(exampleRAD)
OneAllelePerMarker(exampleRAD)
OneAllelePerMarker(exampleRAD, commonAllele = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.