trans_loss: Calculate number of transmitters remaining over time

Description Usage Arguments Details Value

View source: R/trans_loss.R

Description

trans_loss returns the number of transmitters (or other group) remaining each day of a given time period

Usage

1
trans_loss(data, dates, group, stdate = NULL, enddate = NULL)

Arguments

data

Data frame. Detection data including date and time of detection, as well as a group identifier.

dates

Date- or POSIX-class. Date and time of detections.

group

Character. Group identifier (transmitter, fish ID, etc.).

stdate

Date- or POSIX-class. Which day you want the time series to start? Defaults to day of earliest detection in the data set. Must be the same class as enddate

enddate

Date- or POSIX-class.

Details

This function finds the most-recent date of detection for each group (i.e., transmitter/fish). For each date in a given range, it then counts the number of fish that have a more-recent final detection date.

Value

Output is a data frame containing the number of each group remaining at each date.


mhpob/TelemetryR documentation built on Sept. 28, 2020, 11:33 a.m.