dfs-with-r / coach

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

NBA Positions #33

Closed klr233 closed 2 years ago

klr233 commented 2 years ago

Hi!

I believe for this year, FanDuel has changed its position requirements so that some players can be put in 2 different position slots (ex. PG/SG). This makes the generic NBA FanDuel model unable to properly optimize a lineup. I'm fairly new to R, but I have been trying for weeks to work around this issue by way of adding and changing custom positions constraints, however I have had no success.

Any help or ideas to resolve this issue would be greatly appreciated!

P.S. This model is very useful and works extremely well (besides this small issue) so I just wanted to say thank you!

zamorarr commented 2 years ago

Hi @klr233 . Thanks for letting me know. I will fix that. Do you have a recent csv or excel file with the player data from FanDuel this year? That would help me test to make sure that it is working.

klr233 commented 2 years ago

Sure! Here is one from Tuesday along with the projections themselves. NBA 11-30-21.csv NBA_113021_Projections.csv

zamorarr commented 2 years ago

Hey @klr233 . This issue should be fixed now. Let me know if it doesn't work for you. Please re-install the package with (ex. with remotes::install_github("dfs-with-r/coach")) and try it. Thanks.

klr233 commented 2 years ago

Yes, it works! Thank you.