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)

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.