| alleles | R Documentation | 
Function alleles extracts the names of the alleles from a named
genotype vector.
alleles(x, fromlabels = TRUE)
x | 
 A named or unnamed genotype vector (e.g. c(AA=10,AB=20,BB=5))  | 
fromlabels | 
 extract genotypes from the labels of the vector elements, or from the vector elements themselves.  | 
A character vector with the alleles
Jan Graffelman (jan.graffelman@upc.edu)
n.alleles
   x <- c(AA=10,AG=10,GG=10,AT=5)
   als.x <- alleles(x)
   print(als.x)
   y <- rep(names(x),x)
   als.y <- alleles(y,fromlabels = FALSE)
   print(als.y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.