AddDist2Colony: AddDist2Colony Calculate the Distance from Points to Many...

View source: R/AddDist2Colony.R

AddDist2ColonyR Documentation

AddDist2Colony Calculate the Distance from Points to Many Colonies

Description

AddDist2Colony takes tracks with lat/lon positions and and

Usage

AddDist2Colony(
  tracks,
  dataLat = "lat",
  dataLon = "lon",
  CaptureSitesData,
  SiteName = "SiteShort",
  capLat = "lat",
  capLon = "lon"
)

Arguments

tracks

a data frame with with latitude and longitude and colony site names

dataLat

quoted name of column in data that has latitude values

dataLon

quoted name of column in data that has longitude values

CaptureSitesData

data.frame with colony site names and colony lat long

SiteName

a quoted string indicating what the column houses your SiteNames. Must be the same across both your data and the CaptureSitesData

capLat

quoted name of column in CaptureSitesData that has latitude values

capLon

quoted name of column in CaptureSitesData that has longitude values

Value

vector of distances from each colony

Author(s)

Abram B. Fleishman abram@conservationmetrics.com


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