Learn R Programming

trip (version 1.1-1)

TimeOrderedRecords: Functions to specify and obtain DateTime and ID data from within (Spatial) data frames.

Description

Specifies the DateTime and ID data within a data frame for objects of class trip. Functions also for obtaining the names of the columns used, and the data itself.

Usage

TimeOrderedRecords(x)
getTORnames(obj)
getTimeID(obj)

Arguments

x
Character vector of 2-elements, specifying the data columns of DateTimes and IDs.
obj
trip object.

Value

  • TimeOrderedRecords returns an object with a 2-element character vector, specifying the columns names. getTORnames obtains the column names from an object extending the class, and getTimeID returns the data as a data frame from an object extending the class.

Details

These simple functions are for creating classes with TimeOrdered data. The main use is for SpatialPointsDataFrames which are used with TimeOrderedRecords for the class trip.

References

~put references to the literature/web site here ~

See Also

trip, for the use of this class with SpatialPointsDataFrame

Examples

Run this code
tor <- TimeOrderedRecords(c("time", "id"))
getTORnames(tor)

Run the code above in your browser using DataLab