Learn R Programming

cycleRtools (version 1.0.0)

Wbal: W' balance.

Description

Generate a vector of W' balance values from time and power data. The underlying algorithm is published in Skiba et al. (2012), and can also be examined in the function source code.

Usage

Wbal(data, time = "timer.s", pwr = "power.W", CP)

Arguments

data
a data.frame/matrix object with time and power columns.
time
character; name of the time (seconds) column in data.
pwr
character; name of the power (watts) column in data.
CP
a critical power value for use in the calculation.

Value

  • A numeric vector of W' balance values, in kilojoules.

References

Skiba, P. F., W. Chidnok, A. Vanhatalo, and A. M. Jones. Modeling the Expenditure and Reconstitution of Work Capacity above Critical Power. Med. Sci. Sports Exerc., Vol. 44, No. 8, pp. 1526-1532, 2012. http://www.ncbi.nlm.nih.gov/pubmed/22382171{PubMed link}.

See Also

Wbal_plots.

Examples

Run this code
data(cyling_data)
cycling_data$Wexp.kJ <-
  Wbal(cycling_data, timer.s, power.smooth.W, CP = 300)

Run the code above in your browser using DataLab