| trip-class {trip} | R Documentation |
A class for sets of animal trips (track data).
Description
An extension of SpatialPointsDataFrame-class by including
"TimeOrderedRecords". The records within the data frame are
explicitly ordered by DateTime data within IDs.
Objects from the Class
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.
See Also
trip for examples of directly using the class.
trip-accessors describes methods for accessing information on
trip objects.
Examples
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]]
[Package trip version 1.10.0 Index]