jsoslow2 / Fantasy-Football-Models-Old

Beating the shit out of my friends with data science
84 stars 25 forks source link

How to input #3

Closed moshem1234 closed 5 months ago

moshem1234 commented 2 years ago

Insert who's been drafted thus far, and who's on your team Where and how would I input this in?

scooberu commented 2 years ago

In this section

Corran9 commented 2 years ago

I'm relatively new to R. I've reviewed the code, but I still don't see where we set who has been drafted

scooberu commented 2 years ago

In the link I posted in my last comment, you'll find the block where you can post who's been drafted.

e.g.:

draftedOverall <- c(
    'AaronRodgers',
    'DavanteAdams'
                    )
JetJadeja commented 2 years ago

@gatsbysghost, when I paste the names of already drafted players, nothing in actually changes in the output file. Am I missing something?

scooberu commented 2 years ago

After you did that, did you then run the Who's been drafted and OPTIMIZER ALERT WEE WOO sections again? I've found that this generally works for me.

JetJadeja commented 2 years ago

Yep, just realized my problem was not running the Who's been drafted section yet. Appreciate your help!

scooberu commented 2 years ago

np! R is new for me too, and the IDE model of R Studio is super unusual if you're used to most other langs :)

I think ideally what I would want to bolt onto this excellent model is something that keeps track of who is drafting who during a live draft--it can be tricky to keep track of this manually, especially if you only have ~30 seconds to run the optimizer again, make decisions, and hit the go button.

I wonder if ESPN/NFL has an API that could be exposed for this kind of thing...other than that the best option might just be a horrible python web scrape