Learn R Programming

HierDpart (version 1.5.0)

HierJd: Hierarchical Jaccard dissimilarity

Description

This function calculates hierarchical genetic Jaccard dissimilarity

Usage

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

Value

Jdpop

Jaccard dissimilarity between subaggregates

Jdr

Jaccard dissimilarity between aggregates

HierJd

The partitioning of Jaccard dissimilarity at different hierarchical levels

%% ~Describe the value returned %% If it is a LIST, use %% \item{comp1 }{Description of 'comp1'} %% \item{comp2 }{Description of 'comp2'} %% ...

Details

This function partitions genetic Jaccard dissimilarity into different hierarchical levels

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

Run this code
# NOT RUN {
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)

# }

Run the code above in your browser using DataLab