Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

write_lineups nba draftkings... #43

Open
supernole1 opened this issue Feb 12, 2023 · 1 comment
Open

write_lineups nba draftkings... #43

supernole1 opened this issue Feb 12, 2023 · 1 comment

Comments

@supernole1
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant