# NOT RUN {
library(moveVis)
library(move)
# load the example data and convert them into a data.frame
data("move_data")
move_df <- methods::as(move_data, "data.frame")
# use df2move to convert the data.frame into a moveStack
df2move(move_df,
proj = "+init=epsg:4326 +proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0",
x = "coords.x1", y = "coords.x2", time = "timestamps", track_id = "trackId")
# }
Run the code above in your browser using DataLab