Learn R Programming

trip (version 1.10.0)

forceCompliance: Function to ensure dates and times are in order with trip ID

Description

A convenience function, that removes duplicate rows, sorts by the date-times within ID, and removes duplicates from a data frame or SpatialPointsDataFrame.

Usage

forceCompliance(x, tor)

Value

data.frame or SpatialPointsDataFrame-class.

Arguments

x

data.frame or SpatialPointsDataFrame-class

tor

character vector of names of date-times and trip ID columns

See Also

trip