A: Allelic Diversity

Description Usage Arguments Value Examples

View source: R/a.R

Description

This function returns the number of unique, non-NA alleles, in a sample.

Usage

1
A(x, min_freq = 0, loci = NULL, ...)

Arguments

x

A set of locus objects

min_freq

The minimum frequency of allele to consider (default=0)

loci

A list of loci to use (if a data.frame), if not given then all will be considered.

...

Ignored

Value

The number of alleles that have min_freq frequency.

Examples

1
2
3
loci <- c( locus(1:2), locus(c(1,1)), locus(c(2,2)), locus(2:3) )
A(loci)
A(loci, min_freq=0.13)

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