Create a "margin of victory" based on two teams' scores
mov(score.A, score.B = 0)
score.A | Numeric; the score of the first team. Alternatively, this can be a pre-computed margin of victory which will get compared to 0. |
---|---|
score.B | Numeric; the score of the second team; default is 0, in case
|
An object with class "elo.mov"
, denoting score.A
= score.B
.
mov(12, 10) #> [1] 2 #> attr(,"class") #> [1] "elo.mov" "numeric" mov(10, 10) #> [1] 0 #> attr(,"class") #> [1] "elo.mov" "numeric" mov(10, 12) #> [1] -2 #> attr(,"class") #> [1] "elo.mov" "numeric"