dino.dist {fossil}R Documentation

Creating a Distance Matrix

Description

Create a distance matrix between any number of locations

Usage

dino.dist(x, method = "sorenson", type = "dis")

Arguments

x matrix of taxa (or equivalent data) in rows by columns of localities (or equivalent)
method the distance/similarity index to compute
type if the matrix is to be a distance or similarity matrix

Details

This will create a distance (or similarity) matrix using any of the provided indices: sorenson, simpson, bray.curtis, jaccard, morisita.horn, chao.jaccard and chao.sorenson. Creating a distance matrix will give a value of 1 for the most distantly related sites, while similarity index will give a value of 1 for the most similar sites.

Value

A distance matrix (lower triangle) giving the pairwise distance indices between all points.

Note

To use a user generated distance index, type the name of the function to be used for method, and the function will use that function instead. Note that the function internally provides two equal length vectors at a time to the distance calculation function.

Author(s)

Matthew Vavrek

References

~put references to the literature/web site here ~

See Also

sorenson, simpson, bray.curtis, jaccard, morisita.horn, chao.jaccard and chao.sorenson

Examples

##Sample matrix of 3 locations with 3 taxa
a <- matrix(c(0,2,1,3,0,1,0,3,0),3,3)
dino.dist(a)
dino.dist(a,simpson,"sim")


[Package fossil version 0.2.0 Index]