powered by
Create a 1/0/0.5 win "indicator" based on two teams' scores, and test for "score-ness".
score(score.A, score.B)is.score(x)
is.score(x)
For score, a vector containing 0, 1, and 0.5 (for ties). For
score
is.score, TRUE or FALSE depending on whether all values of
is.score
TRUE
FALSE
x are between 0 and 1 (inclusive).
x
Numeric; the score of the first team (whose wins are to be denoted by 1).
Numeric; the score of the second team (whose wins are to be denoted by 0).
An R object.
score(12, 10) score(10, 10) score(10, 12)
Run the code above in your browser using DataLab