R: Distances in variouse approaches

dist {compositions} | R Documentation

## Distances in variouse approaches

### Description

Calculates a distance matrix from a data set.

### Usage

    dist(x,...)
    ## Default S3 method:
    dist(x,...)

### Arguments

`x` | a dataset
`...` | further arguments to `dist`

### Details

The distance is computed based on `cdt`

### Value

a distance matrix

### Author(s)

K.Gerald v.d. Boogaart http://www.stat.boogaart.de

### See Also

`aplus`

### Examples

    data(SimulatedAmounts)
    phc <- function(d) { plot(hclust(d))}
    phc(dist(iris[,1:4]))
    phc(dist(acomp(sa.lognormals),method="manhattan"))
    phc(dist(rcomp(sa.lognormals)))
    phc(dist(aplus(sa.lognormals)))
    phc(dist(rplus(sa.lognormals)))

[Package compositions version 2.0-2 Index]