# NOT RUN {
{
require(rgdal)
require(raster)
require(sp)
# reference data
file <- system.file('extdata', 'latLon_example.shp', package="rsMove")
moveData <- shapefile(file)
# sampling without reference grid
ot = strptime(moveData$timestamp, "%Y-%m-%d %H:%M:%S")
output <- sampleMove(xy=moveData, ot=ot, error=10, method='deg')
# compare original vs new samples
plot(moveData, col="black", pch=16)
points(output$x, output$y, col="red", pch=15)
}
# }
Run the code above in your browser using DataLab