load_tracks: Load Runkeeper(TM) .gpx files into a data.frame

Description Usage Arguments Value Obtaining your data Examples

View source: R/load_data.R

Description

Starting at gpxdir, loads all .gpx files and merges them with CardioActivities.csv to produce a data.frame of all tracked details.

Usage

1
load_tracks(gpxdir)

Arguments

gpxdir

directory containing .gpx files and cardioActivities.csv extracted from a Runkeeper(TM) zip file.

Value

data.frame of tracked data with additional class runkeepR_data

Obtaining your data

You can get a zipped export of your Runkeeper(TM) data from the logged-in settings page on Runkeeper's website, e.g. runkeeper-data-export-12517482-2016-05-20-1550.zip.

Figure: runkeeperexport.png

Unzip the contents of this .zip file to a directory (refer to this as gpxdir).

Examples

1
2
3
4
5
6
7
8
9
## load test data distributed with this package
## test data is a single track; 
## a hike around Anstey Hill, Adelaide, South Australia
## https://en.wikipedia.org/wiki/Anstey_Hill_Recreation_Park

library(runkeepR)
routes <- load_tracks(system.file("extdata", package="runkeepR"))
class(routes) 
## [1] "runkeepR_data" "data.frame"  

jonocarroll/runkeepR documentation built on Feb. 9, 2022, 3:04 a.m.