dt2Track: data.frame to Track

Description Usage Arguments Value Examples

View source: R/utils.R

Description

data.frame to Track

Usage

1
dt2Track(d, y = "latitude", x = "longitude", dt = "time", projection)

Arguments

d

a data.frame or an object inheriting from it

y

column name (character vector). The latitude.

x

column name (character vector). The longitude.

dt

column name (character vector). datetime

projection

character vector. if missing will default to '"+proj=longlat +ellps=WGS84"' with a warning.

Value

A Track

Examples

1
2
3
4
5
6
7
require(data.table)
data(pesa56511)
x = data.frame(pesa56511) %>% data.table
o = dt2Track(x, projection = sp::proj4string(pesa56511) )
a = tdbscan(pesa56511, eps =6600, minPts   = 8, maxLag = 6, borderPoints = TRUE )
b = tdbscan(o, eps =6600, minPts   = 8, maxLag = 6, borderPoints = TRUE )
identical(a, b)

mpio-be/tdbscan documentation built on March 10, 2021, 1:20 p.m.