Dist2Colony: Dist2Colony Calculate the distance of a vector of points...

View source: R/Dist2Colony.R

Dist2ColonyR Documentation

Dist2Colony Calculate the distance of a vector of points (lat,long) to a fixed point

Description

Calculate the distance of a vector of points (lat,long) to a fixed point

Usage

Dist2Colony(tracks, dataLat = "lat", dataLon = "lon", ColonyLat, ColonyLong)

Arguments

tracks

a dataframe

dataLat

quoted latitude

dataLon

quoted longitude

ColonyLat

a latitude value of length = 1

ColonyLong

a longitude value of length = 1

Value

a vector of distances from adjacent points in kilometers

Author(s)

Abram B. Fleishman abram@conservationmetrics.com


abfleishman/trakR documentation built on Nov. 21, 2022, 7:59 a.m.