pdist: Pythagorean Distance

Description Usage Arguments Value Author(s) Examples

View source: R/riverdist_1.R

Description

Pythagorean distance between two points. Called internally.

Usage

1
pdist(p1, p2)

Arguments

p1

X-Y coordinates of point 1

p2

X-Y coordinates of point 2

Value

Distance (numeric)

Author(s)

Matt Tyers

Examples

1
2
3
4
point1 <- c(1,3)
point2 <- c(4,7)

pdist(point1,point2)

riverdist documentation built on Sept. 10, 2021, 9:06 a.m.