Learn R Programming

EloRating (version 0.46.18)

scale_elo: standardize Elo ratings

Description

standardize Elo ratings between 0 and 1

Usage

scale_elo(x)

Value

a numeric vector of Elo ratings, which are scaled between 0 and 1, with the highest rating that is supplied becoming 1, the lowest becoming 0, and all others being proportionally scaled in between

Arguments

x

numeric, a vector of Elo ratings

Author

Christof Neumann

Examples

Run this code
data(adv)
SEQ <- elo.seq(winner=adv$winner, loser=adv$loser, Date=adv$Date)
extract_elo(SEQ, "2010-01-30")
extract_elo(SEQ, "2010-01-30", standardize=TRUE)

# same as
scale_elo(extract_elo(SEQ, "2010-01-30"))

Run the code above in your browser using DataLab