dfs-with-r / coach

Lineup optimization for daily fantasy sports
https://dfs-with-r.github.io/coach/
GNU General Public License v3.0
47 stars 13 forks source link

write_lineups nba draftkings... #43

Open supernole1 opened 1 year ago

supernole1 commented 1 year ago

the following snippet is producing this error---->

write_lineups(Team_NBA, sprintf("%smylineups.csv",DirName), site = "draftkings", sport = "nba")

Error in match.names(clabs, names(xi)) : names do not match previous names

my Team_NBA checks out good, all the teams are there, it just wont print all of them out and crashes with that error when it encounters certain players. attached is the input file I'm using right out of DK export.

DKSalNBA11feb.csv

supernole1 commented 1 year ago

It appears that i get this error when the optimizer selects a team with 4 combinations of Forwards. the above command will work if only three forwards or less are chosen by the optimizer...