getFirstLast: getFirstLast

Description Usage Arguments Details Value Author(s)

View source: R/getFirstLast.R

Description

getFirstLast

Usage

1
2
getFirstLast(df, tidc2 = "TagID", dtc2 = "DateTimeUTC",
  stnc2 = "Station")

Arguments

df

the output of the fishpaths() function: a dataframe that includes of TagIDs, arrival, departure, TagID, and Rkm.

Details

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.

Value

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.

Author(s)

Myfanwy Johnston


Myfanwy/fishtrackr documentation built on May 7, 2019, 5:15 p.m.