get_player_stats | R Documentation |
This function calculates many player stats for either individual games or aggregate to get multi-game stats.
get_player_stats(play_by_play_data = NA, multi.games = F, simple = F)
play_by_play_data |
a data frame of play-by-play data from either get_play_by_play() or scrape_game() |
multi.games |
Logical object. When false stats will be calculated on a game level. When true all games will be aggregated this can be used to get season or multi-game player stats. Defaults to FALSE. |
keep.dirty |
logical object to remove entries from potentially corrupted games. Explained in get_lineups() |
garbage.filter |
logical object to remove garbage time minutes from the sample. Explained in get_lineups() |
error.thresh |
determine how many discrepancies can still occur for a game to be included. Explained in get_lineups() |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.