Learn R Programming

metacoder (version 0.3.7)

molten_dist: Get all distances between points

Description

Returns the distances between every possible combination of two points.

Usage

molten_dist(x, y)

Value

A data.frame

Arguments

x

(numeric of length 1) x coordinate

y

(numeric of length 1) y coordinate

Examples

Run this code
if (FALSE) {
molten_dist(x = 1:5, y = 1:5)
}

Run the code above in your browser using DataLab