get_player_stats: Player Stats Calculator

get_player_statsR Documentation

Player Stats Calculator

Description

This function calculates many player stats for either individual games or aggregate to get multi-game stats.

Usage

get_player_stats(play_by_play_data = NA, multi.games = F, simple = F)

Arguments

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()


jflancer/bigballR documentation built on March 1, 2025, 3:57 a.m.