interpPath: Interpolate trajectory into points

Description Usage Arguments Value

Description

This function takes a single trajectory and interpolates it into a set of points that are spaced by a given time step. If a maximum time lag is provided, the function will not interpolate segments between locations that are separated by more than the maximum lag.

Usage

1
interpPath(path, time.step = 2, max.lag = NULL)

Arguments

path

a data.frame with the trajectory of a individual. It must contain the time.stamp, x, y and depth columns.

time.step

time interval into which interpolate the trajectory, in minutes.

max.lag

maximum time period, in hours, above which the trajectory between two locations will not be interpolated.

Value

a data.frame with the resulting interpolated locations.


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