thinData: Thin acoustic telemetry data

Description Usage Arguments Value

Description

This function thins acoustic telemetry data into specified time intervals. For each interval, a receiver ID an a depth value are assigned depending on their probability distribution in the original data.

Usage

1
2
thinData(track.data = NULL, tag.id, rec.id, time.stamp, depth = NULL,
  time.int = "30min", depth.range = NULL, parallel = FALSE)

Arguments

track.data

data.frame frame with acoustic telemetry data containing the following columns: tag.id, rec.id, time.stamp, and depth. These arguments can be provided separately.

tag.id

vector with the ID codes of tagged individuals.

rec.id

vector with the ID codes of the receivers for each detection.

time.stamp

vector with the date and time of each detection in POSIXt format.

depth

vector with the depth values corresponding to each detection.

time.int

time interval to which data will be thinned, as given to the units argument of the round_date function in the lubridate package.

depth.range

vector with the minimum and maximum depth values, respectively, between wich the sampling of depths will occur.

parallel

option to apply the function in parallel (if TRUE). This will be passed to the .parallel argument of the ldply function in the plyr package.

Value

Data frame with 4 columns: tag.id, time.stamps, rec.id, and depth.


aspillaga/fishtrack3d documentation built on June 4, 2019, 9:14 a.m.