player_data: Player Per Game Stats

Description Usage Arguments Value Examples

View source: R/player.R

Description

Scrape the career per game statistics for a given player

Usage

1
player_data(player, league, advanced = F)

Arguments

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.

Value

Returns a data frame containing the career per game stats by season. Descriptions of statistics can be found by searching the following sites:

Examples

1
2
3
4
5
## Not run: 
   df <- player_data("Kobe Bryant", "NBA")
   df <- player_data("Mike Trout", "MLB", advanced = TRUE)

## End(Not run)

kmacdon/sportscraper documentation built on March 22, 2020, 10:36 p.m.