inconsistent_data: Find Inconsistent Locations in a Track Table

View source: R/errors.R

inconsistent_dataR Documentation

Find Inconsistent Locations in a Track Table

Description

This function attempts to automatically detect inconsistent locations (for instance due to a writing error or GPS inaccuracies) in track tables.

Usage

inconsistent_data(x, s = 15)

Arguments

x

track table as produced by the track function.

s

The discrimination threshold for the outlier detection algorithm. Higher values correspond to less outliers.

Value

A track table of all inconsistent data.

Author(s)

Simon Garnier, garnier@njit.edu

See Also

track

Examples

# Create data set with inconsistent data
data(tracks)
t_df <- track(x = tracks$x, y = tracks$y, t = tracks$t,
              id = tracks$id, proj = "+proj=longlat",
              tz = "Africa/Windhoek", table = "df")
t_df$x[1000] <- t_df$x[1000] * 1.0001
t_df$y[4000] <- t_df$y[4000] * 1.00001

# Find inconsistent data
inconsistent <- inconsistent_data(t_df)


trackdf documentation built on March 31, 2023, 5:47 p.m.