• How To
    • Win Your DFS League
    • Win Your Auction Draft
    • Win Your Snake Draft
    • Download Projections
    • Scrape Projections
    • Calculate Projections for Your League
    • Examine Accuracy of Projections
    • Identify Sleepers
    • Save Custom Settings
    • Use the API
  • Strategy
    • Fantasy Football is Like Stock Picking
    • Use Projections, Not Rankings
  • Projections
    • Our Projections
    • Who has the Best Projections?
    • Draft the Best Starting Lineup
    • Projections are More Accurate than Rankings
    • Points by Position Rank
    • Players’ Risk Levels
    • Value Over Replacement
    • Bid-Up-To Value
    • Player Value Gap
    • Gold Mining
    • Weekly Variability
    • Are Subscription Sources More Accurate?
  • Statistics
    • How To Learn R
    • R is Better than Excel
    • Do Stats Help in Fantasy Football?
    • Download/Run Our Scripts
    • ffanalytics R Package
  • Apps
    • Auction Draft Optimizer
    • Snake Draft Optimizer
    • Weekly Lineup Optimizer
    • Rankings/Projections for Your League
    • API
    • Other Tools
      • Stock Analysis
    • Error Logging
  • Testimonials
  • About the Site
    • About
    • Authors
      • Isaac Petersen
    • FAQ
    • FFA Insider
    • Privacy Policy
    • Terms of Service
  • Donate

Fantasy Football Analytics

Downloading FantasyPros Fantasy Football Projections in R

8
  • by Isaac Petersen
  • in How To · Projections
  • — 12 May, 2013

In this post, I will show you how to download FantasyPros fantasy football projections using R.  The key advantage of FantasyPros is that it aggregates many sources of projections into its predictions, which increases prediction accuracy, as I discuss here.

The R Script for downloading fantasy football projections from FantasyPros is located at: https://github.com/FantasyFootballAnalytics/FantasyFootballAnalyticsR/blob/master/R%20Scripts/Projections/FantasyPros%20Projections.R

Here’s a density plot of the FantasyPros projections:

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to email a link to a friend (Opens in new window) Email

Like this:

Like Loading...

Related

Share

Tags: FantasyProsR

— Isaac Petersen

My name is Isaac and I'm an assistant professor with a Ph.D. in Clinical Psychology. Why am I writing about fantasy football and data analysis? Because fantasy football involves the intersection of two things I love: sports and statistics. With this site, I hope to demonstrate the relevance of statistics for choosing the best team in fantasy football.

8 Comments

  1. erik lewis says:
    October 2, 2013 at 10:30 pm

    i would like to check it out ….

    Reply
  2. Gabriel says:
    October 16, 2013 at 10:06 pm

    First off: Thanks for introducing me to R, and thanks for showing your methodology instructions. I’ve been pulling all my data by hand and, needless to say, it’s been extremely time consuming.

    I have a question for you about your League Settings.R file. I’m editing it for my own needs, but I noticed that you do not include a flex position. In my league, we have a RB/WR/TE flex slot. How would I add this to League Settings.R ?

    Reply
    • Gabriel says:
      October 16, 2013 at 10:10 pm

      I forgot to mention: What about D/ST? Thanks again!

      Reply
      • Isaac Petersen says:
        October 19, 2013 at 9:47 am

        Hey Gabriel, the “numQBstarters” variables in the League Settings.R file are for indicating how many minimum starters to retain for the optimization in the Draft Optimizer (http://apps.fantasyfootballanalytics.net/lineupoptimizer). You can specify flex positions in the tool by using the sliders. Mathematically, it’s setting the constraints so that you retain >= the minimum number of starters at each of the flex positions, yet staying within the total number of allowed starters. Does that make sense? I wrote scripts for downloading D/ST info here:
        https://fantasyfootballanalytics.net/2013/07/expected-points-by-position-rank-in-fantasy-football.html

        It wouldn’t be too difficult to modify the scraping and optimization scripts to include kickers and D/ST. My analysis showed that those positions should be last off the board (https://fantasyfootballanalytics.net/2013/07/expected-points-by-position-rank-in-fantasy-football.html), so my focus was on the other positions.

        Hope that helps!

        Reply
  3. FFB Fool says:
    October 28, 2013 at 2:09 pm

    I’m very green to R…having a hard time understanding where your Functions.R and League Settings.R files are? Any help?

    Reply
    • Admin says:
      October 30, 2013 at 3:16 pm

      Check out Isaac’s Github: https://github.com/isaactpetersen/FantasyFootballAnalyticsR/tree/master/R%20Scripts

      Does that help?

      Reply
  4. Joey Rivaldo says:
    October 19, 2015 at 10:22 am

    I’ve tried several times in the past to use R & GitHub but wasn’t “Getting It”, even after watching some videos on YouTube. I wanted to ask you if have or if you could make a YouTube Video on how to use both as it relates to Scraping Fantasy Football Analytic Stats? I’m sure it would help not only me but many of us who aren’t as bright when it comes to that sort of stuff as well!

    Reply
    • Isaac Petersen says:
      October 19, 2015 at 9:35 pm

      Great suggestion! We’ll put this on our to-do list. In the meantime, you might check out this post:
      https://fantasyfootballanalytics.net/2014/10/download-run-r-scripts.html

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Previous story Win Your Snake Draft: Calculating “Value Over Replacement” using R
  • Next story Who Has the Best Fantasy Football Projections: ESPN, CBS, NFL.com, or FantasyPros?
  • Tabs

    • Most Popular
    • Recent Posts
    • The ffanalytics R Package for Fantasy Football Data AnalysisJune 18, 2016
    • 2015 Fantasy Football Projections using OpenCPUMay 28, 2015
    • Win Your Fantasy Football Auction Draft: Determine the Optimal Players to Draft with this AppJune 14, 2013
    • Win Your Fantasy Football Snake Draft with this AppSeptember 1, 2013
    • Post-Combine Mock: Team Needs and TargetsMarch 10, 2025
    • Fantasy Football Weekly Cheat Sheet: Week 18 (2024)January 3, 2025
    • Fantasy Football Weekly Cheat Sheet: Week 17 (2024)December 26, 2024
    • Fantasy Football Weekly Cheat Sheet: Week 16 (2024)December 18, 2024
  • FFA Insider

    Logo
  • Categories

    • About the Authors
    • Articles
    • Auction Drafts
    • Draft Optimizer
    • FFA Insider
    • Gold Mining
    • How To
    • In the Media
    • Luck
    • Package
    • Projections
    • R
    • Risk
    • Theory
    • Tools
    • Trade Strategy
    • Uncategorized
    • Weekly
  • Facebook

  • Twitter

  • Our Partners

    R-bloggers

  • Support us building things... Even a cup of coffee ($1.99) helps us stay awake!

  • Subscribe to the Fantasy Football Analytics mailing list (no spam).
    Loading

        © Fantasy Football Analytics

        %d