View source: R/y_player_stats.R
y_player_stats | R Documentation |
Want stats for a player or group of players? Provide a vector of player keys and ye shall receive.
y_player_stats( player_key = NULL, token_name = NULL, game_date = NULL, debug = FALSE, quiet = TRUE )
player_key |
Vector of player keys. Key usually in the form xxx.p.xxxx. Found with 'y_players()', 'y_player_slate()' or 'y_rosters()' |
token_name |
Name used for assignment when creating token object with 'y_create_token()'. |
game_date |
Date or week of fantasy season. Default NULL will return aggregate stats for current season. Accepts a vector of dates. |
debug |
Returns a list of data such as uri call and content. Useful for debugging. |
quiet |
Print function activity. |
Want stats for a specific date? Provide a vector of game dates in form YYYY-MM-DD ( Default game date NULL will return aggregate stats for the season. For weekly sports such as nfl you can provide an integer denoting a fantasy week.
A tibble.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.