Description Usage Format Fields Methods See Also
This objects represent the basic set of data needed for defining a projection source. It is used as superclass for the specific source objects that are specific to which type of data is returned. Use html_source, json_source and xlsx_source to create a projection source.
1 |
An R6 class object.
baseThe base url for the source
id_colThe name of the column in the player_ids table that
refers to the id of the player in the source.
league_idThis is used for Yahoo sources. Set to the id of the league that you want to scrape data from
api_keyThe api key associated with the source if applicable
get_pathA function of season, week, position which generates
the url path to scrape data from
get_queryA function of season, week, position which generates
the url query that will be used to scrape data
url_positionsA function of position that will convert the standard
position designation QB, RB, WR, TE, K, DST, DL, LB, DB or others to the
designation that the site uses
min_weekThe minimum week that the site provide data for
max_weekThe maximum week that the site provide data for
season_posA character vector of position names that the site provide data for for season
week_posA character vector of position names that the site provide data for for weekly data,
stat_colsA named character vector that will convert the site column names to standard column names.
get_urlFunction of season, week, position that will
generate the full URL that will be scraped for that season, week and
position
name_colsMethod that will take a table and set the column
names as specified in the stat_cols field
set_idMethod that will take a table and add the MFL id column with values based on the player_ids table
Other source-class: html_source,
json_source, xlsx_source
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.