distSpeed(pt1, pt2, speed=TRUE)
track(txy, id=gl(1, nrow(txy)), subset)POSIXct object with dates and times for all points, the
second and third numeric vectors of longitude and latitude for all
points, respectively, in decimal degrees.pt1.POSIXct object in its first
column, lon and lat in second and third column, respectively.txy into distinct
groups.txy.distSpeed, a matrix with three columns: distance (km),
time difference (h), and speed (m/s). For track, a data frame
with an id column and the same columns as in distSpeed.pt1 and pt2 may contain any number of rows.
track is essentially a wrapper for distSpeed, taking a
data frame, assumed to be ordered chronologically, and calculations
are done between all successive rows.