distribution_profile: Generate training distribution profiles.

Description Usage Arguments Value References Examples

Description

Generate training distribution profiles.

Usage

1
2
3
4
5
distribution_profile(object, session = NULL, what = NULL,
  grid = NULL, parallel = FALSE, unit_reference_sport = NULL)

distributionProfile(object, session = NULL, what = NULL, grid = NULL,
  parallel = FALSE, unit_reference_sport = 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. Defaults to all variables in object (what = NULL).

grid

A named list containing the grid values for the variables in what. If NULL (default) the grids for the variables in what are inferred from object.

parallel

Logical. Should computation be carried out in parallel? Default is FALSE.

unit_reference_sport

The sport to inherit units from (default is taken to be the most frequent sport in object).

Value

An object of class distrProfile.

Object:

A named list with one or more components, corresponding to the value of what. Each component is a matrix of dimension g times n, where g is the length of the grids set in grid (or 201 if grid = NULL) and n is the number of sessions requested in the session argument.

Attributes:

Each distrProfile object has the following attributes:

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

1
2
3
4
5
6
data('run', package = 'trackeR')
dProfile <- distribution_profile(run, what = c("speed", "cadence_running"))
## Not run: 
plot(dProfile, smooth = FALSE)

## End(Not run)

Example output

Loading required package: zoo

Attaching package: 'zoo'

The following objects are masked from 'package:base':

    as.Date, as.Date.numeric


Attaching package: 'trackeR'

The following object is masked from 'package:base':

    append

trackeR documentation built on May 15, 2019, 5:04 p.m.