FantasyFootballAnalytics / FantasyFootballAnalyticsR

R scripts and data files for the Fantasy Football Analytics website
http://fantasyfootballanalytics.net/
447 stars 1.58k forks source link

Trouble with running script IDP.R #29

Closed timrizzi81 closed 7 years ago

timrizzi81 commented 7 years ago

Hi - Thanks for putting all of this together. So, I've gotten to the point where it's having trouble with object.analyst and so, I'm walking through the Prepare Data.R Data scripts and running the first Ranking Script (the functions already successfully ran) and getting this error:

Error in IDP[, c("Player (team, bye)")] : incorrect number of dimensions In addition: Warning message: XML content does not seem to be XML: 'https://www.fantasypros.com/nfl/rankings/idp-cheatsheets.php'

isaactpetersen commented 7 years ago

Those scripts are out of date and not maintained. If you want to scrape IDP projections, use the ffanalytics R package: http://fantasyfootballanalytics.net/2016/06/ffanalytics-r-package-fantasy-football-data-analysis.html