Learn R Programming

trackeR (version 0.0.3)

summary.trackeRdata: Summary of training sessions.

Description

Summary of training sessions.

Usage

"summary"(object, session = NULL, movingThreshold = NULL, ...)

Arguments

object
An object of class trackeRdata.
session
A numeric vector of the sessions to be summarised, defaults to all sessions.
movingThreshold
The threshold above which speed an athlete is considered moving (given in the unit of the speed measurements in object. If NULL, the default, the threshold corresponds to a slow walking speed (1 m/s, converted to another speed unit, if necessary). For reference, the preferred walking speed for humans is around 1.4 m/s (Bohannon, 1997).
...
Currently not used.

Value

An object of class trackeRdataSummary.

References

Bohannon RW (1997). "Comfortable and Maximum Walking Speed of Adults Aged 20--79 Years: Reference Values and Determinants." Age and Ageing, 26(1), 15--19. doi: 10.1093/ageing/26.1.15.

See Also

plot.trackeRdataSummary

Examples

Run this code
data("runs", package = "trackeR")
runSummary <- summary(runs, session = 1:2)
## print summary
runSummary
print(runSummary, digits = 3)
## change units
changeUnits(runSummary, variable = "speed", unit = "km_per_h")
## plot summary
runSummaryFull <- summary(runs)
plot(runSummaryFull)
plot(runSummaryFull, group = c("total", "moving"),
    what = c("avgSpeed", "distance", "duration", "avgHeartRate"))

Run the code above in your browser using DataLab