Learn R Programming

HierDpart (version 1.5.0)

pwDeltaD: Pairwise Shannon differentiation (Delta D)

Description

Estimating pairwise Shannon differentiation (Delta D)

Usage

pwDeltaD(x, para)

Arguments

x

Input file, data matrix or data frame

para

Indicating whether using parallel process

Value

PairwiseDeltaD

Pairwise Delta D

%% \item{comp2 }{Description of 'comp2'} %% ...

Details

Calculating pairwise Shannon differentiation, Delta D (Gaggiotti, O. E.,et al, 2018).

References

Gaggiotti, O. E., Chao, A., Peres-Neto, P., Chiu, C. H., Edwards, C., Fortin, M. J., ... & Selkoe, K. A. (2018). Diversity from genes to ecosystems: A unifying framework to study variation across biological metrics and scales. Evolutionary applications, 11(7), 1176-1193.

Examples

Run this code
# NOT RUN {
### Users can test the example in their own computer,
##as this is pairwise differentiation, using parallel
# will save more time
#f <- system.file('extdata',package='HierDpart')
#infile <- file.path(f, "Island.gen")
#library(adegenet)
#Islandfile=read.genepop(infile,ncode=3)
#Islandfreq=tab(Islandfile,freq=TRUE)
#IslandpwD=pwDeltaD(Islandfreq,para=FALSE)
#print(IslandpwD)

# }

Run the code above in your browser using DataLab