distance_matrix: Distance matrix

View source: R/distance_matrix.R

distance_matrixR 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.


distances documentation built on Sept. 11, 2024, 6:49 p.m.