thinData: Thin acoustic telemetry data

Description Usage Arguments Value

View source: R/thinData.R


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.


thinData( = NULL,,, time.stamp, depth = NULL, = "30min", depth.range = NULL, parallel = FALSE)


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

vector with the ID codes of tagged individuals.

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


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


vector with the depth values corresponding to each detection.

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


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


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.


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

aspillaga/fishtrack3d documentation built on Oct. 17, 2018, 11:12 p.m.