n.alleles: Number of alleles

n.allelesR Documentation

Number of alleles

Description

Function n.alleles determines the number of alleles in a named genotype vector.

Usage

n.alleles(x, ...)

Arguments

x

A named genotype vector (e.g. c(AA=10,AB=20,BB=5))

...

extra arguments that are passed on to alleles

Value

integer

Author(s)

Jan Graffelman (jan.graffelman@upc.edu)

See Also

alleles

Examples

   x <- c(AA=25,AB=50,BB=25)
   k <- n.alleles(x)
   print(k)

HardyWeinberg documentation built on May 29, 2024, 6:17 a.m.