addThreshold: addThreshold

Description Usage Arguments Details Examples

View source: R/addThreshold.R

Description

Function to set up a user threshold

Usage

1
addThreshold(sport, metric, value, userSettings = NULL)

Arguments

sport

Character. One of 'bike', 'run' or 'swim'

metric

Character. One of 'power', pace', 'HR'

value

Numeric (power and HR) or character (pace). For pace, use the format mm:ss

userSettings

(userSettings) An object of class userSettings. Optional. If given the new settings will be added to the existing ones, if NULL (default) a new userSettings object will be created

Details

Add threshold to user settings

The tool is adimentional, as in the calcualtions are not affected by the units used. for instance min/km vs min/mile. However, the user should always use the same units, i.e. if the threshold is in min/km, then all the sessions planned efforts must be entered in min/km for the results to be correct.

Examples

1
2
3
4
5
6
#set the bike FTP to 250W
mySettings <- addThreshold(sport = 'bike', metric = 'power', value = 250)

#add a run FTP of 300W
mySettings <- addThreshold(sport = 'bike', metric = 'power', value = 250,
userSettings = mySettings)

theasjblog/tssPlanner_package documentation built on March 8, 2020, 2:36 a.m.