• 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

How Can I Learn R?

14
  • by Isaac Petersen
  • in R
  • — 15 Jun, 2014

We use the software program R to conduct statistical analysis for this site (you can download it here).  Many visitors of the site have expressed interest in learning R, so we’ve put together a list of beginning resources for learning R:

  1. Use this intro to R: http://www.statmethods.net/
  2. Check out these resources for getting started with R: https://stats.idre.ucla.edu/r/
  3. Watch these videos from Coursera: http://blog.revolutionanalytics.com/2012/12/coursera-videos.html
  4. Take this Introduction to R course
  5. Learn R interactively with swirl
  6. Use the learnr package
  7. Post to the R mailing list or forums if you have questions
  8. Read other blogs on R-bloggers
  9. Read this site!

Here are some resources for learning statistics:

  1. Free textbook on statistics: https://www.openintro.org/stat/textbook.php
  2. Free textbook on Learning Statistics with R
  3. An excellent introductory textbook on Discovering Statistics using R
  4. Take this Data Analysis and Statistical Inference course

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

— 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.

14 Comments

  1. AdvStats says:
    June 2, 2015 at 12:37 pm

    Actually you have 3 relevant backgrounds: stats, psychology and sports. Much of the advanced work uses psychology and Decision Theory. Given your background i hope to see Behavioral Finance and formal Predictive Analytics. Hopefully you will provide some tips and formulae in R.

    Reply
  2. Tyler says:
    August 20, 2015 at 2:24 pm

    Hey Isaac,

    Love the website really interesting! I was wondering if there is any way to work bonuses for longer touchdowns into the scoring for the app. For example my league adds a 2 point bonus for touchdowns over 25 yards and so on.

    Thanks, Tyler

    Reply
    • Isaac Petersen says:
      August 21, 2015 at 10:06 am

      Hi Tyler,

      Do you know of an analyst that provides projections for that? We’d need projections to include it on our tools.

      Thanks,
      Isaac

      Reply
  3. Mark says:
    October 3, 2015 at 3:16 am

    Hello,
    I know Im brand new to this website but judging from all of your reviews/comments, its exactly what I was looking for. This is my first year doing Fantasy Football and I’m already 0-3 in my league but I have decent players. I was hoping you could show me exactly how to download your data and use it to my advantage every week!

    Thanks!!

    Reply
    • Isaac Petersen says:
      October 3, 2015 at 11:15 am

      You can download weekly projections here:
      http://apps.fantasyfootballanalytics.net/projections

      Reply
  4. Lee says:
    October 21, 2015 at 7:36 pm

    I was curious on the lineup optimizer app if I am doing something wrong. I tried to see about getting a linuep for week 7 Fan dual but when the results come up they are blank. Am I doing something wrong? I tried it for week 6 and they came up just fine. Thanks in advance.

    Reply
    • Isaac Petersen says:
      October 21, 2015 at 11:49 pm

      We hadn’t uploaded the Week 7 salaries yet, but we’ve uploaded them now, so it should be working now for all sites but Victiv.

      Reply
  5. Max Abrahamson says:
    October 23, 2015 at 11:02 pm

    Would love to talk to you about this database. Please email me at the email listed above.

    Reply
  6. Ralph says:
    December 4, 2015 at 1:44 pm

    I installed the FFA app on Ubuntu Linux, R Rel. 3.1.2

    Running the code after setting setwd(), I get several runtime errors.

    1. source(paste(getwd(),”/R Scripts/Rankings/IDP.R”, sep=””), echo=TRUE)

    > name1 <- str_sub(kickers[,c("Player (team, bye)")], end=str_locate(kickers[,c("Player (team, bye)")], '[:upper:]{2,3},')[,1]-2)
    Error in `[.data.frame`(kickers, , c("Player (team, bye)")) :
    undefined columns selected

    Could you please advice.
    Thank you for the fast quick help

    Reply
    • Isaac Petersen says:
      December 5, 2015 at 9:45 am

      We haven’t updated the scripts for this season on the repo. The error is saying that the phrase “Player (team, bye)” is not one of the column headers. You would have to change which column header to use based on the column headers of the table that you scrape.

      Reply
  7. Michael says:
    July 21, 2016 at 11:37 pm

    This is really great information. Do you also have some information about learning how to do the statistical analysis? Especially for those of us who don’t know what r-squared is.

    Reply
    • Isaac Petersen says:
      July 22, 2016 at 7:42 am

      Hi Michael,

      I added some resources above to help with learning stats. For overviews on R-squared, specifically, see here:
      http://blog.minitab.com/blog/adventures-in-statistics/regression-analysis-how-do-i-interpret-r-squared-and-assess-the-goodness-of-fit
      http://people.duke.edu/~rnau/rsquared.htm

      Hope that helps!
      -Isaac

      Reply
  8. Brian mcevers says:
    September 6, 2017 at 10:32 am

    Can we do this on your phone?

    Reply
    • Val Pinskiy says:
      September 6, 2017 at 6:31 pm

      The apps are not currently set up for mobile use

      Reply

Leave a Reply Cancel reply

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

  • Previous story Which Site Has the Best Fantasy Football Projections? 2014 Update
  • Next story Custom Fantasy Football Rankings and Projections for Your League with this App
  • 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