load_pbp: Load an archived play-by-play file if it exists, otherwise,...

View source: R/load_pbp.R

load_pbpR Documentation

Load an archived play-by-play file if it exists, otherwise, process one and return it.

Description

Load an archived play-by-play file if it exists, otherwise, process one and return it.

Usage

load_pbp(game_id, team = NA)

Arguments

game_id

unique id for game

team

any of team name, city, id or abbreviation. If NA returns a list with a pbp for each team

Value

when team is NA a list with both team's pbp data is returned, when a team_id is provided a data.frame of that team's pbp data is returned


kburnham/tidynbadata documentation built on Aug. 7, 2024, 12:10 a.m.