interpol.trajectory: Regularize irregular trajects and/or subsample trajects

Description Usage Arguments Examples

View source: R/interpol.trajectory_function.R

Description

interpol.trajectory takes a matrix of locations associated to a vector of times at which these locations were acquired, and return a dataframe with the original and interpolated locations (identified in column "interp") ; Author: S. Chamaillé-Jammes ; Last update: 22/05/2013

Usage

1
interpol.trajectory(xy, time, maxtime, nomove = FALSE)

Arguments

xy

matrix of locations or NA values

time

a POSIXct vector of date at which locations were acquired

maxtime

maximum time interval between two locations beyond which interpolation is NOT done (minutes)

nomove

in case two locations are exactly similar, should NA values in between by replaced by the coordinates of this location?

Examples

1
interpol.trajectory(xy,time,maxtime=120,nomove=FALSE)

rpatin/gpstools documentation built on Sept. 25, 2021, 7:47 a.m.