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.
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...
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