coach
coach copied to clipboard
mylineups.csv DraftKings NFL needs extra commas in header
Hi! I've never contributed to a GitHub project. I think I found a glitch in DraftKings NFL where the mylineups.csv is writing QB,RB,RB,WR,WR,WR,TE,FLEX,DST where it needs to be QB,RB,RB,WR,WR,WR,TE,FLEX,DST,, in order to avoid an error. I imagine they changed the required format after you published.
Seems to me that we need to change this line in https://github.com/dfs-with-r/coach/blob/master/R/write.r pos_levels <- c("QB", "RB", "WR", "TE", "FLEX", "DST") to pos_levels <- c("QB", "RB", "WR", "TE", "FLEX", "DST","","") but I'm not 100% sure. I'd be happy to change the code and contribute, I've just never changed anything in GitHub so I may need a bit of hand-holding, and also would like to hear your opinion on if this would fix the issue.
Thanks! a