filterForClosePoints: Delete Outliers in Tracks

Description Usage Arguments Details Value Examples

View source: R/accessData.R

Description

This function selects points that are too far away from its next neighboring points.

Usage

1
filterForClosePoints(track, threshold)

Arguments

track

List of trajectory.

threshold

Distance threshold. Unit based on crs of track of Points.

Details

The distance can be determined by the threshold. Whenever the distance to one direct neighboring point is less than the threshold, the point will be kept. It has the main purpose to identify outliers of GPS measurements when the receiver misslocated itself

Value

Returns all entries of the trackOfPoints that are close enough.

Examples

1
2
3
4
5
## Not run: 
track = readGPXFile("./inst/extdata/track_run.gpx")
filteredTrack = filterForClosePoints(track, 2)

## End(Not run)

KathHv/ross documentation built on Dec. 18, 2021, 2:42 a.m.