Learn R Programming

geo (version 1.4-3)

intra.point.dist: Intra point/position distance

Description

For a data frame of positions return the vector of intra point distances

Usage

intra.point.dist(x)

Arguments

x
List of positions with components lat and lon.

Value

Vector of distances between the points in x.

See Also

arcdist

Examples

Run this code
# distances along the perimeter of a statistical rectangle
pos <- rPeri(323)
intra.point.dist(pos)
sum(intra.point.dist(pos))

Run the code above in your browser using DataLab