import_run: Import Run

Description Usage Arguments Value Remark Examples

View source: R/data_import.R

Description

Import Run (Standard: GPX) to Data Frame

Usage

1
2
import_run(file = "data/2017-11-06.gpx", type = "gpx",
  track_progress = TRUE)

Arguments

file

path and file name.

type

Type of log-file: currently, only gpx is supported.

track_progress

T/F if data loading progress tracking is wished for

Value

A data frame containing basic information about your run.

pointID

ID for each track point

ele

elevation above sealevel in meters

time

time (in POSIXct-format)

runtime

time since start (in seconds)

distance

distance since the last trackpoint

cumulative.distance

cumulative distance since the beginnning

x

x-coordinate (longitude (East-West-Dimension))

y

y-coordinate (longitude (North-South-Dimension))

Remark

So far, only the gpx-format from Sportstracker is implemented.

Examples

1
2
3
4
5
## Not run: 
run <- import_run(file = 'data/2017-11-06.gpx',type = 'gpx')
head(run)

## End(Not run)

schliebs/runR documentation built on May 26, 2019, 3:35 a.m.