View source: R/identify_trips.R
identify_trips | R Documentation |
Adds a column with information when the animal was close to the central location or outside the central location
identify_trips(
GPS_data = GPS_data,
Nest_location = Nest_location,
Distance_km = Distance_km
)
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 |
returns the same data frame with an additional column, Y for outside the central location, N for inside the central location
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.