Skip to content

Instantly share code, notes, and snippets.

Created March 7, 2019 13:45
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Short moveVis example on how to create a data.frame containing each track coordinate per frame
# this example uses internal functions since there are no user functions yet to do this
m <- align_move(move_data, res = 4, unit = "mins")
# m must be aligned, check (returns an error, if m is not aligned, does nothing, if m is aligned)
# if you are certain, m is the same variable you used with frames_spatial, you can remove line 9
# make some frames
frames <- frames_spatial(m, equidistant = F)
# covnert m to df with frame numbering per coordinate corrsponding to frames
frames.df <- moveVis:::.m2df(m) # (use the same m as you used with frames_spatial)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment