Reset a dataset or vector.

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)