y_rosters | R Documentation |
Supply a vector of team or league keys to the function to retrieve roster data. If a date is supplied the roster data for that date will be returned.
y_rosters( key = NULL, token_name = NULL, game_date = NULL, debug = FALSE, quiet = TRUE )
key |
League key or team key as a string in the form "000.l.0000" or "000.l.0000.t.0". These keys can be found with 'y_games()' and 'y_teams()'. |
token_name |
Name used for assignment when creating token object with 'y_create_token()'. |
game_date |
A vector of dates of fantasy season in form YYYY-MM-DD to return. Default is null and will return current date. |
debug |
Returns a list of data such as uri call and content. Useful for debugging. |
quiet |
Print function activity. |
Function accepts a vector of dates.
Function is memoised
A tibble.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.