reset {cycleRtools} | R Documentation |
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]]
.
reset(x)
x |
a numeric vector or formatted cycling dataset (i.e. class |
either a data frame or vector, depending on the class of x
.
data(ridedata) # Remove first minute of data and reset. data_raw <- ridedata[ridedata$timer.s > 60, ] data_reset <- reset(data_raw)