Learn R Programming

compositions (version 0.9-11)

dist: Distances in variouse approaches

Description

Calculates a distance matrix from a dataset.

Usage

dist(x,...)
## S3 method for class 'default':
dist(x,\dots)

Arguments

x
a dataset
...
further arguments to dist

Value

  • a distance matrix

Details

The distance is computed based on cdt

See Also

aplus

Examples

Run this code
data(iris)
dist(iris[,1:4])
data(SimulatedAmounts)
dist(acomp(sa.lognormals),method="manhattan")
dist(rcomp(sa.lognormals))
dist(aplus(sa.lognormals))
dist(rplus(sa.lognormals))

Run the code above in your browser using DataLab