Learn R Programming

trackeR (version 0.0.3)

zones: Time spent in training zones.

Description

Time spent in training zones.

Usage

zones(object, session = NULL, what = c("speed", "heart.rate"), breaks = list(speed = 0:10, heart.rate = c(0, seq(75, 225, by = 50), 250)), parallel = FALSE, cores = NULL, ...)

Arguments

object
An object of class trackeRdata.
session
A numeric vector of the sessions to be plotted, defaults to all sessions.
what
A vector of variable names.
breaks
A list of breakpoints between zones, corresponding to 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("corese") (on Windows) or options("mc.cores") (elsewhere), or, if the relevant option is unspecified, to half the number of cores detected.
...
Currently not used.

Value

An object of class trackeRdataZones.

See Also

plot.trackeRdataZones

Examples

Run this code
data("run", package = "trackeR")
runZones <- zones(run, what = "speed", breaks = list(speed = c(0, 2:6, 12.5)))
## if breaks is a named list, argument 'what' can be left unspecified
runZones <- zones(run, breaks = list(speed = c(0, 2:6, 12.5)))
## if only a single variable is to be evaluated, 'breaks' can also be a vector
runZones <- zones(run, what = "speed", breaks = c(0, 2:6, 12.5))
plot(runZones)

Run the code above in your browser using DataLab