Learn R Programming

trajectories (version 0.1-2)

generalize: Generalize objects of class Track, Tracks and TracksCollection

Description

Generalize objects of class Track, Tracks and TracksCollection.

Usage

## S3 method for class 'Track':
generalize(t, FUN = mean, ...,  timeInterval, distance, n, tol, toPoints)
## S3 method for class 'Tracks':
generalize(t, FUN = mean, ...)
## S3 method for class 'TracksCollection':
generalize(t, FUN = mean, ...)

Arguments

t
An object of class Track, Tracks or TracksCollection.
FUN
The generalization method to be applied. Defaults to mean if none is passed.
timeInterval
(lower limit) time interval to split Track into segments
distance
(lower limit) distance to split Track into segments
n
number of points to form segments
tol
tolerance passed on to gSimplify, to generalize segments using the Douglas-Peucker algorithm.
toPoints
keep mid point rather than forming SpatialLines segments
...
Additional arguments passed to FUN

Value

  • An object of class Track, Tracks or TracksCollection.