trip {trip} | R Documentation |
Extend the basic functionality of a Spatial
data frame by specifying the
data columns that define the "TimeOrdered" quality of the records.
trip(obj, TORnames)
obj |
A SpatialPointsDataFrame , containing at least two columns
with the DateTime and ID data as per TORnames |
TORnames |
Either an object of TimeOrderedRecords , or a 2-element
character vector specifying the DateTime and ID column of obj |
A trip object, with the usual slots of a SpatialPointsDataFrame
and the
added TimeOrderedRecords
. For the most part this can be treated as a
data.frame
with Spatial
coordinates.
Michael D. Sumner
speedfilter
, and tripGrid
for simple(istic)
speed filtering and spatial time spent gridding.
d <- data.frame(x = 1:10, y = rnorm(10), tms = Sys.time() + 1:10, id = gl(2, 5)) coordinates(d) <- ~x+y tr <- trip(d, c("tms", "id"))