trip-class | R Documentation |
An extension of SpatialPointsDataFrame-class
by including
"TimeOrderedRecords"
. The records within the data frame are
explicitly ordered by DateTime data within IDs.
Objects can be created by calls of the form
trip(obj="SpatialPointsDataFrame", TORnames="TimeOrderedRecords")
.
The object contains all the slots present within a
SpatialPointsDataFrame-class
, particularly data
which
contains columns of at least those specified by TOR.columns
.
trip
for examples of directly using the class.
trip-accessors
describes methods for accessing information on
trip
objects.
showClass("trip")
d <- data.frame(x=1:10, y=rnorm(10), tms=Sys.time() + 1:10, id=gl(2, 5))
tr <- trip(d)
summary(tr)
plot(tr)
lines(tr)
dim(tr)
names(tr)
subset(tr, id == "2")
as.data.frame(tr)
tr[1:3, ]
tr[, 1]
tr[[1]]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.