ffverse / ffscrapr

R API Client for Fantasy Football League Platforms
https://ffscrapr.ffverse.com
Other
76 stars 21 forks source link

Collecting Awesome Usage Of {ffscrapr} #280

Open tanho63 opened 3 years ago

tanho63 commented 3 years ago

Got any cool examples of how you've used ffscrapr?

I'd love to hear about it and build up a directory page of blog posts, code snippets, Shiny apps etc that can help inspire future analysis and dev! Please comment here if you've got such a thing.

Examples of things I'm keen on hearing about:

TheMathNinja commented 3 years ago

Things I've created via ffscrapr:

  1. Tracked historical value of rookie draft pick by draft slot in our dynasty league (using ff_draft() in conjunction with using ff_playerscores() for points and ff_starters() / ff_starterpositions() to calculate positional baselines)
  2. Tracked salary allocation vs. player value to determine positional buy-lows / auction targets in a salary cap league
  3. Used ff_franchises() in conjunction with ff_standings() to predict team performance before Week 1 and set equitable schedules accordingly.
tanho63 commented 3 years ago

@TheMathNinja Awesome! Any code examples published anywhere? 😀

TheMathNinja commented 3 years ago

Yes, the scheduler is public (the other ones would take a bit of work for me to take out my "special sauce").

Just be forewarned that this code was written almost a year ago, so it's a much earlier version of ffscrapr, and also just 1-2 months into me learning how to code in R, haha. I'll re-visit it this July/August for an update, I imagine.

https://github.com/TheMathNinja/NFLdataprojects/blob/master/Football-Analytics-Labs/FAFLschedgeneratorv3.R

draftydesert277 commented 3 years ago

I don't know if you're familiar with Tableau, but you could check out the beginnings of a "league dashboard" I'm working on: https://public.tableau.com/profile/steve.goedken#!/vizhome/Book1_16193733190810/Draft

cincysam6 commented 2 years ago

Tan,

This is a really great package. Working on a Shiny App to compile a league website that will look at a wide variety of historical league stats that ESPN doesn't keep like all time record vs opponent. The league goes back on ESPN to like 2007 and has had stable members the whole time so really interested in seeing who historically the best drafter in the league has been, if any owner is particularly adept at late round value, things like that.

cincysam6 commented 2 years ago

@tanho63 Building a Blog on my fantasy league. Eventually will do some more sophisticated things and want to build a shiny app, but this has been fun for my family fantasy league that we've done for 25 years.

https://kfl-analytics.netlify.app/