Learn R Programming

topolow (version 1.0.0)

coordinates_to_matrix: Convert coordinates to distance matrix

Description

Calculates pairwise Euclidean distances between points in coordinate space

Usage

coordinates_to_matrix(positions)

Value

A symmetric matrix of pairwise Euclidean distances between points.

Arguments

positions

Matrix of coordinates where rows are points and columns are dimensions; It can be a matrix or a data frame.