atl_simple_dist: Calculate euclidean distances between successive points.

Description Usage Arguments Value

View source: R/fun_simple_distance.R

Description

Calculate euclidean distances between successive points.

Usage

1
atl_simple_dist(data, x = "x", y = "y")

Arguments

data

A dataframe object of or extending the class data.frame, which must contain two coordinate columns for the X and Y coordinates.

x

A column name in a data.frame object that contains the numeric X or longitude coordinate for position data.

y

A column name in a data.frame object that contains the numeric Y or latitude coordinate for position data.

Value

Returns a vector of distances between consecutive points.


Orrslab/Pratik_atlastools documentation built on Dec. 31, 2020, 3:23 p.m.