Learn R Programming

pandemonium (version 0.2.4)

getDists: Compute distances between all points

Description

Compute distances between all points

Usage

getDists(coord, metric, user_dist = NULL)

Value

distances between all points

Arguments

coord

matrix with coordinate representation of all points

metric

name of distance metric to be used in stats::dist

user_dist

user distance returned with metric=user

Examples

Run this code
getDists(Bikes$space1[1:5,],"euclidean")
getDists(Bikes$space1[1:5,],"maximum")

Run the code above in your browser using DataLab