scrape_yahoo: Scrape data from Yahoo

Description Usage Arguments

View source: R/scrape_yahoo.R

Description

Use this function to scrape fantasy football projections from Yahoo Sports. To use this function you will have to set up a Yahoo Sports fantasy league and specify the league id in the options with options('ffdata.yahoo_league'='leagueid')

Usage

1
2
3
4
scrape_yahoo(stat_type = c("Projected", "Actual", "Remaining Season",
  "Next 4 weeks", "Last 4 Weeks", "Avg Last 4 Weeks"), position = c("O", "DP",
  "QB", "RB", "WR", "TE", "K", "DST", "D", "DB", "DL", "LB", "DT", "DE", "CB",
  "S"), season = NULL, week = NULL)

Arguments

stat_type

The projection type requested. Has to be one of c("Projected", "Actual", "Remaining Season", "Next 4 weeks", "Last 4 Weeks", "Avg Last 4 Weeks"). If omitted then Projected stats will be scraped

position

The player position to scrape data for. Has to be one of c("O", "DP", "QB", "RB", "WR", "TE", "K", "DST", "D", "DB", "DL", "LB", "DT", "DE", "CB", "S"). If omitted data for all offensive positions (QB, RB, WR, and TE) will be scraped.

season

The year data should be scraped for. If omitted the current season data will be scraped.

week

The week that data will be scraped for. If omitted, season data will be scraped.


MrDAndersen/ff.datascrape documentation built on May 17, 2019, 5:44 p.m.