distance_matrix {distances}R Documentation

Distance matrix

Description

distance_matrix makes distance matrices (complete and partial) from distances objects.

Usage

distance_matrix(distances, indices = NULL)

Arguments

distances

A distances object.

indices

If NULL, the complete distance matrix is made. If integer vector with point indices, a partial matrix including only the indicated data points is made.

Value

Returns a distance matrix of class dist.


[Package distances version 0.1.10 Index]