Description Usage Arguments Details Examples
Function to set up a user threshold
1 | addThreshold(sport, metric, value, userSettings = NULL)
|
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 |
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.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.