forceCompliance {trip} | R Documentation |
A convenience function, that removes duplicate rows, sorts by the date-times within ID, and removes duplicates from a data frame or SpatialPointsDataFrame. .
forceCompliance(x, tor)
x |
data.frame or SpatialPointsDataFrame |
tor |
character vector of names of date-times and trip ID columns |
Dataframe or SpatialPointsDataFrame.
It's really important that data used are of a given quality, but this function makes the most common trip problems easy to apply.
Michael D. Sumner
See Also trip