id_one_shed: Identify shed for one tag

Description Usage Arguments Details Value Author(s)

View source: R/sheds.R

Description

Identify a shed or gap in a single fish detection history.

Usage

1
2
3
4
5
6
7
8
9
id_one_shed(
  df,
  max_last_residence = 7,
  max_gap_days = 60,
  id_col = "TagID",
  stn_col = "GroupedStn",
  arrival_col = "arrival",
  depart_col = "departure"
)

Arguments

df

a data.frame of detection history for a single tagID, i.e., a single fish

max_last_residence

integer, the max residence time allowed, in days

id_col

character, the name of the TagID column

stn_col

character, the name of the stations column

arrival_col

character, the name of the arrivals column

depart_col

character, the name of the departures column

max_gap

integer, the max gap allowed, in days

Details

Identify a shed or gap in a single fish detection history.

Value

a data.frame for a single fish, with logical columns indicating if this tag was likely a shed, or if it had large gap in the detection history

Author(s)

Matt Espe


fishsciences/ybt documentation built on March 11, 2021, 8:45 a.m.