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 watchtime
- date and time in standard formatUNIXtime
- UNIX timehrbpm
- heart rate (beats per minute)hrbpmx
- interpolated heart ratelat
- latitudelatx
- interpolated latitudelon
- longitudelonx
- interpolated longitudealt
- altitudedist
- cumulative distance (meters)dist_interpol
- interpolated distancep2p_dist
- point to point distance (from previous to current point)tot_dist
- cumulative distance interpolatedspeed
- speed (km/hr)
Please direct comments/queries to Andrew J. White - [email protected]
If you use this parser as part of your research, please cite it 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.