Learn R Programming

topolow (version 2.0.1)

coordinates_to_matrix: Convert Coordinates to a Distance Matrix

Description

Calculates pairwise Euclidean distances between points in a coordinate space.

Usage

coordinates_to_matrix(positions)

Value

A symmetric matrix of pairwise Euclidean distances between points.

Arguments

positions

Matrix or Data Frame of coordinates where rows are points and columns are dimensions.