Description Usage Arguments Details Value Author(s)
last_first: extract the first detection of a fish at its last known location.
1 2 3 4 5 6 | last_first(
detdf,
tagidcol = "TagID",
datetimecol = "DateTimeUTC",
stationcol = "Station"
)
|
detdf |
a dataframe of detections for multiple tagged animals |
tagidcol |
Name of the column (in quotes) corresponding to individual tag IDs |
datetimecol |
Name of the column corresponding to detection date and time (must be in POSIXct ymd_hm/s format) |
stationcol |
Name of the column corresponding to location or station information |
This function takes a dataframe of detections and extracts the first detection of each tag, and the first detection at each tag's last station, and returns a dataframe with this information so that the travel time can then be easily calculated
a dataframe with five columns: TagID, first_det (first detection of tag), first_stn (first station), last_arrival (first detection time at final station), last_stn (station where last arrival was recorded).
Myfanwy Johnston
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.