forceCompliance {trip}R Documentation

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)

Arguments

x data.frame or SpatialPointsDataFrame
tor character vector of names of date-times and trip ID columns

Value

Dataframe or SpatialPointsDataFrame.

Note

It's really important that data used are of a given quality, but this function makes the most common trip problems easy to apply.

Author(s)

Michael D. Sumner

See Also

See Also trip


[Package trip version 1.1-2 Index]