Learn R Programming

trip (version 1.10.0)

trip-accessors: Functions to retrieve DateTime and ID data from within (Spatial) data frames.

Description

Functions for retrieving the names of the columns used for DateTime and ID, as well as the data.

Usage

getTORnames(obj)

getTimeID(obj)

# S3 method for summary.TORdata print(x, ...)

Value

getTORnames retrieves the column names from an object extending the class TimeOrderedRecords, and getTimeID returns the data as a data frame from an object extending the class TimeOrderedRecords.

Arguments

obj

trip object.

x

trip object

...

currently ignored

See Also

trip-class, for the use of this class with SpatialPointsDataFrame-class.

trip

Examples

Run this code


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

Run the code above in your browser using DataLab