compareSplits: compareSplits

Description Usage Arguments Details Value Examples

View source: R/compareSplits.R

Description

Function to generate a summary of the activity data

Usage

1
2
3
4
5
6
compareSplits(
  data,
  showMe = NULL,
  ftp = NULL,
  ftpType = c("power", "pace", "HR")[1]
)

Arguments

data

an activity dataframe or list of dataframes (splits)

showMe

(character) The metrics to include in the plot. Must be the same name as the column in the dataframe.

ftp

(numeric) Functional threshold power if bike workout, pace [min/km] if run or swim, lactate heart rate threshold if using HR

ftpType

(character) One of 'power', 'pace' or 'HR', to describe what kind of FTP was provided

Details

The function summarise the activity data in a dataframe. If a valid FTPO and FTP type combination is provided the function also computes TSS and IF (see Joe Friel blog for more details on these metrics)

Value

A dataframe with a summary of comparisons between metrics for the activity.

Examples

1
2
3
4
gpx <- intervalActivity
compareSplits(gpx, ftp = 4.1, ftpType = "pace")
sp<-autoSplits(gpx)
compareSplits(sp, ftp = 4.1, ftpType = "pace")

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