Skip to contents

Calculates distances between consecutive points in a coordinate matrix.

Usage

sequential_dist(m, lonlat = TRUE)

Arguments

m

Matrix of coordinates (x, y)

lonlat

Logical, whether coordinates are longitude/latitude (default: TRUE)

Value

Numeric vector of distances between consecutive points