ploidy: Returns the number of alleles in a 'locus' object

Description Usage Arguments Value Author(s) Examples

Description

This function will a count of the number of alleles within a locus object for either a single locus or for a vector of loci

Usage

1
ploidy(x)

Arguments

x

A locus object (single or vector)

Value

A count of the number of alleles in the locus

Author(s)

Rodney J. Dyer rjdyer@vcu.edu

Examples

1
2
3
4
loc <- locus( 1:2 )
ploidy( loc )
loci <- c( locus(1:2), locus(c(1,1) ) )
ploidy( loci )

MarianaLag/Mlag documentation built on Feb. 13, 2020, 12:30 a.m.