Learn R Programming

cycleRtools (version 1.0.0)

ride_time: Calculate ride time.

Description

A simple function for calculating ride time as opposed to elapsed time.

Usage

ride_time(x, delta = NULL)

Arguments

x
a vector of time values.
delta
numeric; the typical interval between time values, if NULL a best estimate is used.

Value

  • ride time in the same units as x.

Examples

Run this code
t_sec <- c(1:20, 50:70)
# elapsed time
max(t_sec)
# ride time.
ride_time(t_sec)

Run the code above in your browser using DataLab