Skip to content

Instantly share code, notes, and snippets.

@pepijn-devries
Last active August 29, 2015 14:27
Show Gist options
  • Save pepijn-devries/6e59daa90d5164fe0f78 to your computer and use it in GitHub Desktop.
Save pepijn-devries/6e59daa90d5164fe0f78 to your computer and use it in GitHub Desktop.
# rearrang the data
GPStags <- t(matrix(unlist(GPStags), 2))
# store in the data.frame
file_info$lon <- GPStags[,1]
file_info$lat <- GPStags[,2]
# check if any files lack GPS longitudes
table(is.na(file_info$lon))
# clean up after us
rm(GPStags)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment