Learn R Programming

riverdist (version 0.17.0)

pdisttot: Total Pythagorean Distance

Description

Total Pythagorean distance of a sequence of points. Called internally.

Usage

pdisttot(xy)

Value

Distance (numeric)

Arguments

xy

A matrix of X-Y coordinates of the sequence of points.

Author

Matt Tyers

Examples

Run this code
points <- matrix(c(1:10), nrow=5, ncol=2, byrow=FALSE)

pdisttot(xy=points)

Run the code above in your browser using DataLab