Learn R Programming

biotools (version 2.0)

distClust: Cluster Distance Matrix

Description

Function to compute a matrix of average distances within and between clusters.

Usage

distClust(d, nobj.cluster, id.cluster)

Arguments

d
an object of class "dist" containing the distances between objects.
nobj.cluster
a numeric vector containing the numbers of objects per cluster.
id.cluster
a numeric vector for identification of the objects per cluster.

Value

  • A squared matrix containing distances within (diagonal) and between (off-diagonal) clusters.

See Also

tocher, dist