locs <- readLocs(system.file(file.path("data", "sealLocs.csv"),
package="diveMove"), idCol=1, dateCol=2,
dtformat="%Y-%m-%d %H:%M:%S", classCol=3, lonCol=4,
latCol=5)
summary(locs)
ringy <- subset(locs, id == "ringy")
## Austin et al.'s group filter
grp <- grpSpeedFilter(ringy[, 3:5], speed.thr=0.9)
## McConnell et al.'s filter (root mean square test), and distance test
rms <- rmsDistFilter(ringy[, 3:5], speed.thr=0.9, dist.thr=100)
## All three tests in sequence (Austin et al. procedure)
austin <- austFilter(locs$time, locs$lon, locs$lat, id=locs$id,
speed.thr=0.9, dist.thr=100)Run the code above in your browser using DataLab