zones {trackeR} | R Documentation |
Time spent in training zones.
Description
Time spent in training zones.
Usage
zones(
object,
session = NULL,
what = c("speed"),
breaks = NULL,
parallel = FALSE,
n_zones = 9,
unit_reference_sport = NULL,
...
)
Arguments
object |
An object of class |
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 |
parallel |
Logical. Should computation be carried out in
parallel? If |
n_zones |
numeric that sets the number of zones for data to be
split into. Default is |
unit_reference_sport |
The sport to inherit units from
(default is taken to be the most frequent sport in
|
... |
Currently not used. |
Value
An object of class trackeRdataZones
.
See Also
Examples
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)
[Package trackeR version 1.6.0 Index]