Create a "margin of victory" based on two teams' scores

mov(score.A, score.B = 0)

Arguments

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 score.A is already a margin of victory..

Value

An object with class "elo.mov", denoting score.A = score.B.

See also

Examples

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"