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

ploidyR Documentation

Returns the number of alleles in a locus object

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

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

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

dyerlab/gstudio documentation built on Jan. 17, 2025, 11:17 a.m.