ncaa_bb_pbp: ncaa_bb_pbp

ncaa_bb_pbpR Documentation

ncaa_bb_pbp

Description

Scrapes and parses pbp data for ncaa basketball games

Usage

ncaa_bb_pbp(game_id, dirty_data_behavior = "warn")

Arguments

game_id

the game_id for the specified game from stats.ncaa.com

dirty_data_behavior

specifies the behavior for the function if inconsistencies are detected between the box score and the pbp.

  • If "error", then when an inconsistency is detected, the function will throw an error and not return anything.

  • If "warn", then a warning will display but the function will still return pbp data.

  • If "silent", the function will still check that the data is clean, but will not display any warning or error message. This param defaults to "warn".

Value

a dataframe of cleaned, parsed play-by-play data for the specified game_id


ehess/ncaascrapR documentation built on March 28, 2022, 3:33 a.m.