Learn R Programming

trackeR (version 1.0.0)

distributionProfile: Generate training distribution profiles.

Description

Generate training distribution profiles.

Usage

distributionProfile(object, session = NULL, what = c("speed", "heart.rate"),
  grid = list(speed = seq(0, 12.5, by = 0.05), heart.rate = seq(0, 250)),
  parallel = FALSE, cores = NULL)

Arguments

object

An object of class trackeRdata.

session

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

what

The variables for which the distribution profiles should be generated.

grid

A named list containing the grid for the variables in what.

parallel

Logical. Should computation be carried out in parallel?

cores

Number of cores for parallel computing. If NULL, the number of cores is set to the value of options("cores") (on Windows) or options("mc.cores") (elsewhere), or, if the relevant option is unspecified, to half the number of cores detected.

Value

An object of class distrProfile.

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))
plot(dProfile, smooth = FALSE)
# }

Run the code above in your browser using DataLab