Learn R Programming

GrammR (version 1.1.0)

KenDist: Wrapper for the C program which calculates the Kendall's $\tau$-distance.

Description

This function calculates the Kendall's $\tau$-distance from the metagenomic count matrix.

Usage

KenDist(Data, Penalty)

Arguments

Data
A $N \times k$ matrix comprising the metagenomic count data. If the rows correspond to the samples and the columns correspond to taxa/OTUs, elements of the resulting distance matrix measure dissimilarity between samples.
Penalty
A number between 0 and 1 which determines the penalty for ties.

Value

A $N \times N$ symmetric dissimilarity matrix, where $N$ is the number of samples. If

References

Fagin, Ronald et.al. (2004) Comparing partial rankings, SIAM Journal on Discrete Mathematics, 20, 47-58.

See Also

Count2Distance

Examples

Run this code
data(metagencounts)
Distance <- KenDist(Data = metagencounts$Counts, Penalty = 0.5)

## The result obtained in the above example is the same as
## Not run: Distance <- Count2Distance(Data = metagencounts$Counts, 
# Distance = "Kendall's tau-distance", Penalty = 0.5);## End(Not run)

Run the code above in your browser using DataLab