install.packages('gpx') #Install the latest version from GitHub #devtools::install_github("bmewing/gpx")
Pass in the path to a GPX file to the read_gpx function to get back a list of routes and tracks as data frames.
read_gpx
hike = gpx::read_gpx('example-hike.gpx') hike$tracks #list of data frames of tracks in the file hike$routes #lits of data frames or routes in the file