interpolateTrack: Interpolate Track

Description Usage Arguments Details Value

Description

Resample a Track by Linear Interpolation

Usage

1
interpolateTrack(trk, tstep = 60 * 60)

Arguments

trk

a dataframe representing a track

tstep

the time step to reample to (in seconds)

Details

Linearly interpolate in longitude and latitude to resample a track back to a regular time step.

The input track is given as a dataframe where each row is an observed location, with (at minimum) columns

'date'

observation time (as GMT POSIXct),

'lon'

observed longitude,

'lat'

observed latitude

Value

a dataframe with columns

date

observation time (as POSIXct)

lon

interpolated longitude

lat

interpolated latitude


SWotherspoon/Marseille documentation built on May 9, 2019, 12:05 p.m.