summary.trackeRdata {trackeR}R Documentation

Summary of training sessions

Description

Summary of training sessions

Usage

## S3 method for class 'trackeRdata'
summary(
  object,
  session = NULL,
  moving_threshold = NULL,
  unit_reference_sport = NULL,
  ...
)

Arguments

object

An object of class trackeRdata.

session

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

moving_threshold

A named vector of 3 speeds above which an athlete is considered moving, given in the unit of the speed measurements in object. If NULL (default), the speeds are taken to be c(cycling = 2, running = 1, swimming = 0.5). See Details.

unit_reference_sport

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

...

Currently not used.

Details

The default speed thresholds are 1 m/s for running (3.6 km/h; slow walking), 2 m/s for cycling (7.2 km/h) for cycling and 0.5 m/s (1.8km/h) for swimming. For reference, the preferred walking speed for humans is around 1.4 m/s (Bohannon, 1997).

The units for the computed summaries match those of the sport specified by unit_reference_sport.

If object has thresholds then the thresholds that match those of the sport specified by unit_reference_sport are applied to the respective summaries.

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

data('runs', package = 'trackeR')
runSummary <- summary(runs, session = 1:2)
## print summary
runSummary
print(runSummary, digits = 3)
## Not run: 
## change units
change_units(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', "total_elevation_gain"))

## End(Not run)

[Package trackeR version 1.6.0 Index]