Learn R Programming

eyeris (version 2.1.1)

calc_euclidean_dist: Calculate Euclidean distance between points

Description

Calculate Euclidean distance between points

Usage

calc_euclidean_dist(x1, y1, x2 = 0, y2 = 0)

Value

A numeric vector of Euclidean distances

Arguments

x1

First x coordinate or vector of x coordinates

y1

First y coordinate or vector of y coordinates

x2

Second x coordinate or vector of x coordinates (defaults to 0)

y2

Second y coordinate or vector of y coordinates (defaults to 0)