Learn R Programming

trackeR (version 1.0.0)

concentrationProfile: Generate training concentration profiles.

Description

Generate training concentration profiles.

Usage

concentrationProfile(object, session = NULL, what = c("speed",
  "heart.rate"), ...)

Arguments

object

An object of class distrProfile as returned by distributionProfile.

session

A numeric vector of the sessions to be used, defaults to all sessions.

what

The variables for which the concentration profiles should be generated.

...

Currently not used.

Value

An object of class conProfile.

References

Kosmidis, I., and Passfield, L. (2015). Linking the Performance of Endurance Runners to Training and Physiological Effects via Multi-Resolution Elastic Net. ArXiv e-print arXiv:1506.01388. Frick, H., Kosmidis, I. (2017). trackeR: Infrastructure for Running and Cycling Data from GPS-Enabled Tracking Devices in R. Journal of Statistical Software, 82(7), 1--29. doi:10.18637/jss.v082.i07

Examples

Run this code
# NOT RUN {
data("run", package = "trackeR")
dProfile <- distributionProfile(run, what = "speed", grid = seq(0, 12.5, by = 0.05))
cProfile <- concentrationProfile(dProfile)
plot(cProfile, smooth = FALSE)
plot(cProfile)
# }

Run the code above in your browser using DataLab