sdeep27 / DFS-analysis

Six useful R functions for analyzing fantasy football

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DFS-analysis

Six useful R functions for deeper analysis of fantasy football. Tailored for DraftKings.

2016week8.csv is the base csv file of raw fantasy football data from Week 8 downloaded from Rotoguru. This is the example input file.

sundayonly("2016week8.csv", c("jac","ten","was","cin","min","chi"), 8) outputs "2016week8sun.csv" - Since most of the major tournaments use only the main slate of games, it is often useful to remove games not on that main slate for post hoc analysis.

topscorers("2016week8sun.csv") outputs "Top Scorers 2016week8sun.csv"

createmaster() will combine all weekly stats files in folder into "Master Stats.csv"
team_opp_analysis("Master Stats.csv") outputs 64 individual team CSVs that break down opponent output and team output. Useful for finding teams to avoid playing against and running analysis on team weaknesses and strengths. There is example output for the New Orleans Saints

matchup_holder("2016week8.csv") outputs "matchup 2016week8.csv" useful for game by game analysis.
pos_examine("matchup 2016week8.csv", "QB") outputs "QB Points 2016week8.csv". Can run on any position. Game by Game analysis. Useful for comparing a positions points compared to total game points, team points, etc.

About

Six useful R functions for analyzing fantasy football


Languages

Language:R 100.0%