View source: R/score.bracket.R
score.bracket | R Documentation |
Compute score for bracket given actual result
score.bracket(
bracket.empty,
bracket.picks,
bracket.outcome,
bonus.round = c(1, 2, 4, 8, 16, 32),
bonus.seed = rep(0, 16),
bonus.combine = c("add", "multiply")
)
bracket.empty |
a length-64 character vector giving the field of 64 teams in the tournament, in order of initial overall seeding |
bracket.picks |
an length-63 character vector encoding the picks (this is the bracket to be evaluated) |
bracket.outcome |
a 63-row matrix encoding the outcome of multiple simulations of the tournament. bracket.picks will be scored against each outcome |
bonus.round |
a length-6 vector giving the number of points awarded in your pool's scoring rules for correct picks in each round (default is 2^round) |
bonus.seed |
a length-16 vector giving the bonus awarded for correctly picking winner based on winner's seed (default is zero) |
bonus.combine |
how to combine the round bonus with the seed bonus to get the number of points awarded for each correct pick: "add" (default) or multiply |
a vector giving the score for bracket.picks for each outcome in the matrix bracket.oucome
sspowers
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.