Description Usage Arguments Value Examples
Scrape the career per game statistics for a given player
1 | player_data(player, league, advanced = F)
|
player |
A string containing the player's full name |
league |
A string containing the league to be searched. One of: 'NFL', 'NBA', 'MLB', 'NHL', 'CBB'. |
advanced |
Default is false. Make true to retrieve advanced NBA, CBB, and MLB stats. |
Returns a data frame containing the career per game stats by season. Descriptions of statistics can be found by searching the following sites:
www.basketball-reference.com
www.pro-football-reference.com
www.hockey-reference.com
www.baseball-reference.com
www.sports-reference.com/cbb
1 2 3 4 5 | ## Not run:
df <- player_data("Kobe Bryant", "NBA")
df <- player_data("Mike Trout", "MLB", advanced = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.