OneAllelePerMarker {polyRAD} | R Documentation |
Return the Index of One Allele for Each Locus
Description
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.
Usage
OneAllelePerMarker(object, ...)
## S3 method for class 'RADdata'
OneAllelePerMarker(object, commonAllele = FALSE, ...)
Arguments
object |
A |
commonAllele |
If |
... |
Additional arguments (none implemented). |
Value
An integer vector indicating the index of one allele for each locus
in object
.
Author(s)
Lindsay V. Clark
See Also
GetTaxa
for a list of accessors.
Examples
data(exampleRAD)
OneAllelePerMarker(exampleRAD)
OneAllelePerMarker(exampleRAD, commonAllele = TRUE)
[Package polyRAD version 2.0.0 Index]