RcappeR

Calculates the margins (in seconds) between the winner of a race (the fastest time) and the horses who finished behind.

Usage

btn_sec(times)

Arguments

param details
times vector of times recorded by each runner

Details

The function substracts the lowest/fastest time from the rest.

Example Use

times <- c(59, 59.5, 59.65, 60, 60.5)

btn_sec(times = times)
## [1] 0.00 0.50 0.65 1.00 1.50