A: Allelic Diversity

View source: R/a.R

AR Documentation

Allelic Diversity

Description

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

Usage

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

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

dyerlab/gstudio documentation built on Feb. 2, 2024, 8:24 p.m.