first_last: Get first (minimum) and last (maximum) detection and stations...

Description Usage Arguments Value Author(s)

View source: R/first_last.R

Description

Get first (minimum) and last (maximum) detection and stations of a tagged animal

Usage

1
2
3
4
5
6
first_last(
  detdf,
  tagidcol = "TagID",
  datetimecol = "DateTimeUTC",
  stationcol = "Station"
)

Arguments

detdf

A detections dataframe

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

Value

a dataframe with five columns: TagID, first_det (first detection of tag), first_stn (first station), last_det (last detection time at final station), last_stn (station where last arrival was recorded).

Author(s)

Myfanwy Johnston


Myfanwy/tagtales documentation built on Nov. 13, 2021, 6:33 a.m.