get.dist {asbio} | R Documentation |
This function allows users access to all 26 resemblance measures
shown in Table 29.10. This includes five not previously available in R.
Many of the measures are programmed with the function designdist
from library vegan
.
The methods can be specified by name or by the distance measure number they were
given in Table 29.10; e.g. Steinhaus index = "D8"
.
Minkowski's distance requires an additional specification for power.
The default is power = 2 which makes the measure equivalent to Euclidean distance.
get.dist(data, method, minkowski.power = 2)
data |
A matrix for which resemblances between rows will be calculated |
method |
One of twenty six possible resemblance measures. These
are: "matching", "rogers", "jaccard.pa", "sorenson", "kulkczynski.pa", "ochiai",
"gower", "steinhaus", "kulkczynski.q", "jaccard.q", "euclidean", "rel.euclidean",
"manhattan", "czekanowski", "whittaker", "canberra", "chi.metric","chi.dist",
"morisita", "morisita.horn", "minkowski", "mountford", "raup.crick","binomial",
or "chao" . A method may also be specified by its equation number from Ch. 29.
i.e. Steinhaus dissimilarity = "D8" . |
minkowski.power |
Minkowski's distance requires a specification for power.
The default is minkowski.power = 2 which makes the measure equivalent to Euclidean distance. |
See Ch. 29 for descriptions of resemblance measures.
Returns a matrix of class(dist)
.
Ken Aho
Legendre, P, and Legendre, L. (1998) Numerical ecology, 2nd English edition. Elsevier, Amsterdam, The Netherlands.
Oksanen, J., Kindt, R., Legendre, P., O'Hara, B., Simpson, G. L., and Stevens, M. H. H. (2008) vegan: community ecology package. R package version 1.13-0. http://vegan.r-forge.r-project.org
library(vegan) data(varespec) get.dist(varespec,method="steinhaus")