TimeOrderedRecords-class {trip}R Documentation

Class "TimeOrderedRecords"

Description

A simple class to act as a place-holder for DateTime and ID records in spatial data

Objects from the Class

Objects can be created by calls of the form new("TimeOrderedRecords", TOR.columns). TOR.columns are a 2-element character vector specifying the DateTime and ID columns in an object of class trip.

Slots

TOR.columns:
2-element vector of class "character"

Methods

trip
signature(obj = "ANY", TORnames = "TimeOrderedRecords"): create a trip object from a data frame
trip
signature(obj = "trip", TORnames = "TimeOrderedRecords"): create a trip object from an existing trip object

Note

Future versions may change significantly, this class is very basic and could probably be implemented in a better way. Specifying TOR columns by formula would be a useful addition.

Author(s)

Michael D. Sumner

References

~put references to the literature/web site here ~

See Also

See Also trip for creating trip objects, and trip-class for the class.

Examples

tor <- new("TimeOrderedRecords", TOR.columns = c("datetime", "ID"))
tor <- TimeOrderedRecords(c("datetime", "ID"))

[Package trip version 1.1-2 Index]