Learn R Programming

trip (version 1.1-1)

TimeOrderedRecords-class: Class "TimeOrderedRecords"

Description

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

Usage

TimeOrderedRecords(x)

Arguments

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

Value

  • TimeOrderedRecords returns an object with a 2-element character vector, specifying the columns names.

Objects from the Class

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

Details

The main use of this class and creator function is for SpatialPointsDataFrames which are used with TimeOrderedRecords for the class trip.

See Also

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

Examples

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

Run the code above in your browser using DataLab