p2pDistance: Returns a vector of point to point distances for a line.

Description Usage Arguments Value

Description

For a line which is represented by a two dimensional matrix with x and y coordinate columns, this function returns a vector of distances from each point to the next point. The vector is of length nrow(x) - 1.

Usage

1

Arguments

x

a two column matrix

Value

a vector of distances


jasonelaw/nrsa documentation built on Nov. 8, 2019, 11:34 a.m.