Description Usage Arguments Details Value Examples
Converts margins, between the winner of a race and the horses behind, from lengths into seconds.
1 | conv_margins(btn_l, cum_l = TRUE, win_time = NULL, conditions = NULL)
|
btn_l |
beaten lengths |
cum_l |
default |
win_time |
winners time, optional param, entering will mean the function returns an individual race time for each runner |
conditions |
default |
As default, the lengths per second scale used is the US convention of 5 lengths per second. However, if the race was run under the jurisdiction of the BHA, then entering an abbrevation of the races conditions will apply the lengths per second scale employed by the BHA. See also bha_ls and bhascale.
margins, in seconds, if win_time is entered then individual times per runner are returned
1 2 3 4 5 6 7 8 | ## Not run:
btn_l <- c(0, 0.2, 0.5, 1, 1.5)
conv_margins(btn_l = btn_l)
conv_margins(btn_l = btn_l, cum_l = FALSE)
conv_margins(btn_l = btn_l, win_time = 59)
conv_margins(btn_l = btn_l, win_time = 59, conditions = "f-ggf")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.