Learn R Programming

trip (version 1.1-1)

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)

Arguments

obj
trip object.

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.

See Also

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

Examples

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

Run the code above in your browser using DataLab