alleles | R Documentation |
locus
objectThis function will provide the alleles within a locus
object
for either a single locus or for a vector of loci
alleles(x, all = TRUE)
## Default S3 method:
alleles(x, all = TRUE)
## S3 method for class 'locus'
alleles(x, all = TRUE)
x |
A |
all |
A flag indicating that you want all alleles returned (default=TRUE)
A |
A matrix of alleles. If x
is a vector then the result
will be represented by rows.
Names from passed vector
Either a matrix
or vector
of alleles depending
upon what was passed to the function.
Rodney J. Dyer rjdyer@vcu.edu
locus <- c( locus(1:2), locus(c(1,1)), locus(c(2,2)), locus(2:3) )
alleles(locus)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.