Function to convert raw NFL fantasy data from http://Rotoguru1.com in to a DraftKings perfect lineup. See file 2016week8sun.csv for example input data.
Useful for post hoc analysis. Can also be used to construct optimal lineups based on projected points.
Optional parameter to delete players (usually outliers that were projected very low, or to iterate through next best lineups)
Optional parameter to set minimum salary
sdeep27/linear-optimization-fantasy-football
Using lpSolve library to find perfect DraftKings lineup
R