HierJd: Hierarchical Jaccard dissimilarity

Description Usage Arguments Details Value Author(s) References Examples

View source: R/HierJd.R

Description

This function calculates hierarchical genetic Jaccard dissimilarity

Usage

1
HierJd(f, ncode, nreg, r)

Arguments

f

Input file, genepop format

ncode

The integer used to code an allele

nreg

The number of aggregates (regions)

r

The number of subaggregates in each aggregate

Details

This function partitions genetic Jaccard dissimilarity into different hierarchical levels

Value

Jdpop

Jaccard dissimilarity between subaggregates

Jdr

Jaccard dissimilarity between aggregates

HierJd

The partitioning of Jaccard dissimilarity at different hierarchical levels

Author(s)

qinxinghu@gmail.com

References

Jaccard, P. (1901). Etude comparative de la distribution florale dans une portion des Alpes et des Jura. Bull Soc Vaudoise Sci Nat, 37, 547-579. Jaccard, P. (1912). The distribution of the flora in the alpine zone. 1. New phytologist, 11(2), 37-50.

Examples

1
2
3
4
f <- system.file('extdata',package='HierDpart')
infile <- file.path(f, "Island.gen")
HierJd_Island=HierJd(infile,nreg=4,r=c(7,4,2,3),ncode=3)
print(HierJd_Island)

HierDpart documentation built on March 31, 2021, 5:09 p.m.