ordertable2points | R Documentation |
Given an order table and a schedule of points, calculate the points awarded to each competitor.
ordertable2points(o, points,totals=TRUE)
o |
Order table |
points |
A numeric vector indicating number of points awarded for first, second, third, etc placing |
totals |
Boolean, with default |
Returns either an order table or a named numeric vector
Robin K. S. Hankin
ordertable
points <- c(25, 18, 15, 12, 10, 8, 6, 4, 2, 1, 0, 0)
o <- as.ordertable(F1_table_2017)
ordertable2points(o,points)
ordertable2points(ranktable_to_ordertable(rrank(9,volvo_maxp)),1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.