hap.div: Haplotype diversity

View source: R/hap.div.R

hap.divR Documentation

Haplotype diversity

Description

The function returns the haplotype diversity per population.

Usage

hap.div(dnabin, pop)

Arguments

DNAbin

object.

Details

The function takes an advantage of other functions from package pegas. Pegas calculates number of haplotypes and haplotype frequency. This function tries to summarize haplotype diversity by population if specified.

Value

Haplotype diversity per population


shankarkshakya/mypackage documentation built on May 16, 2024, 8:14 a.m.