threshold.trackeRdata: Thresholding for variables in 'trackeRdata' objects

Description Usage Arguments Details Examples

Description

Thresholding for variables in trackeRdata objects

Usage

1
2
3
4
5
## S3 method for class 'trackeRdata'
threshold(object, variable, lower, upper, sport,
  trace = FALSE, ...)

threshold(object, ...)

Arguments

object

An object of class trackeRdata.

variable

A vector containing the names of the variables to which thresholding is applied. See Details.

lower

A vector containing the corresponding lower thresholds. See Details.

upper

A vector containing the corresponding upper thresholds. See Details.

sport

A vector of sports (amongst 'cycling', 'running', 'swimming') with each element corresponding to variable, lower and upper

trace

Should a progress report be printed? Default is FALSE

...

Currently not used.

Details

lower and upper are always understood as referring to the units of the object.

If the arguments variable, lower, and upper are all unspecified, the following default thresholds are employed

after they have been tranformed to the units of the object

The thresholds for speed differ across sports: for running they are [0, 12.5] meters per second, for cycling [0, 100] meters per second and for swimming [0, 5] meters per second.

Examples

1
2
3
4
5
6
7
## Not run: 
data('runs', package = 'trackeR')
plot(runs, session = 4, what = 'speed', threshold = FALSE)
runsT <- threshold(runs, variable = 'speed', lower = 0, upper = 12.5, sport = "running")
plot(runsT, session = 4, what = 'speed', threshold = FALSE)

## End(Not run)

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