getSplitsValues: getSplitsValues

Description Usage Arguments Details Value Examples

View source: R/helper.R View source: R/getSplitsValues.R

Description

Function to detSplitsValues

Usage

1
getSplitsValues(gpx, sp, xVariable)

Arguments

gpx

(data frame) a dataframe generated with gpxAnalyser::dataLoader()

sp

(list) the list of dataframe representing the splits

xVariable

(character) the variable to put on the x axis. One of 'DistanceMeters' or 'Time'

Details

the function gives the splits intital time or distance, needed to plot the splits on the metrics plot

Value

A numeric vector

Examples

1
2
3
gpx <- intervalActivity
sp <- autoSplits(gpx)
splitsValues <- getSplitsValues(gpx, sp, "Time")

theasjblog/tcx_package documentation built on March 13, 2021, 2:24 a.m.