n.alleles | R Documentation |
Function n.alleles
determines the number of alleles in a named
genotype vector.
n.alleles(x, ...)
x |
A named genotype vector (e.g. c(AA=10,AB=20,BB=5)) |
... |
extra arguments that are passed on to |
integer
Jan Graffelman (jan.graffelman@upc.edu)
alleles
x <- c(AA=25,AB=50,BB=25)
k <- n.alleles(x)
print(k)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.