Description Usage Arguments Details Value Author(s)
getFirstLast
1 2 | getFirstLast(df, tidc2 = "TagID", dtc2 = "DateTimeUTC",
stnc2 = "Station")
|
df |
the output of the fishpaths() function: a dataframe that includes of TagIDs, arrival, departure, TagID, and Rkm. |
Function selects the first station as that with the earliest time, breaking ties with the lowest river km, and the last station as that with the last time, with the highest river km.
df with TagID, station of first detection, station of last detection, travel time in days between those two stations, and the distance between the two stations.
Myfanwy Johnston
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.