Prerequisites:
- a working version of R (available at http://cran.r-project.org/)
- R library package "tcltk2" - this is simple tool for interactively choosing directories and files
- a .tcx file from a garmin device (this code has been tested with a tcx file from a Garmin Forerunner 310XT)
Output: Dataframe in the following formats:
- .txt file (for easy access)
- .rdata (for use within R)
Dataframe columns:
- "lap" - points at which lap marker was pressed on watch
- "time" - date and time in standard format
- "UNIXtime" - UNIX time
- "hrbpm" - heart rate (beats per minute)
- "hrbpmx" - interpolated heart rate
- "lat" - latitude
- "latx" - interpolated latitude
- "lon" - longitude
- "lonx" - interpolated longitude
- "alt" - altitude
- "dist" - cumulative distance (meters)
- "dist_interpol" - interpolated distance
- "p2p_dist" - point to point distance (from previous to current point)
- "tot_dist" - cumulative distance interpolated
- "speed" - speed (km/hr)
Please direct comments/queries to Andrew J. White - [email protected]
You can cite this software using:
White, A.J. & Kleinböhl, D. (2013). TCX Parser: An R library for parsing Garmin TCX files. Retrieved from https://github.com/shiroandy/garmin-tcx-parser.