identify_trips: Adds a column with information when the animal was close to...

View source: R/identify_trips.R

identify_tripsR Documentation

Adds a column with information when the animal was close to the central location or outside the central location

Description

Adds a column with information when the animal was close to the central location or outside the central location

Usage

identify_trips(
  GPS_data = GPS_data,
  Nest_location = Nest_location,
  Distance_km = Distance_km
)

Arguments

GPS_data

is the data frame with the tracking data, must have columns named 'Longitude' and 'Latitude' if not provided please rename those columns

Nest_location

is the data frame with the nest location, must have columns named 'Longitude' and 'Latitude' if not provided please rename those columns

Distance_km

is the distance that would be considered inside the central location or outside the central location

Value

returns the same data frame with an additional column, Y for outside the central location, N for inside the central location

Examples

GPS_01_nest<-data.frame(Longitude=-109.4531, Latitude=-27.20097)
GPS01_trips<-identify_trips(GPS_data=GPS01,Nest_location=GPS_01_nest,Distance_km=1)

MiriamLL/sula documentation built on July 7, 2024, 10:34 a.m.