eheinzen / elo

An R package to calculate Elo ratings
https://eheinzen.github.io/elo/
37 stars 3 forks source link

elo.model.frame breaks with NAs #40

Closed eheinzen closed 5 years ago

eheinzen commented 5 years ago
> elo.run(replace(wins.A, 1, NA) ~ adjust(team.A, 10) + team.B, data = rbind(dat, dat), k = 20)
 Error in `$<-.data.frame`(`*tmp*`, adj.A, value = c(10, 10, 10, 10, 10,  : 
  replacement has 6 rows, data has 5 

where dat is the test data.