reset: Reset a dataset or vector.

Description Usage Arguments Value Examples

Description

if x is a "cycleRdata" object, all columns are reset as appropriate. This can be useful after subsetting a ride dataset, for example. Otherwise, this is a wrapper for x - x[[1]].

Usage

1
reset(x)

Arguments

x

a numeric vector or formatted cycling dataset (i.e. class "cycleRdata").

Value

either a data frame or vector, depending on the class of x.

Examples

1
2
3
4
5
data(ridedata)

# Remove first minute of data and reset.
data_raw   <- ridedata[ridedata$timer.s > 60, ]
data_reset <- reset(data_raw)

cycleRtools documentation built on May 2, 2019, 10:51 a.m.