process_msf_pbp: High level function for converting raw msf pbp to a...

View source: R/process_msf_pbp.R

process_msf_pbpR Documentation

High level function for converting raw msf pbp to a tidynbadata pbp tibble

Description

Typically it is not necessary to call this function directly. It is better to use load_pbp(game_id, team) which will handle acquisition of the raw data and archiving of the results.

Usage

process_msf_pbp(raw_msf_pbp)

Arguments

raw_msf_pbp

a raw api pull of a play-by-play from mysportsfeeds (as returned by get_raw_pbp(game_id))

Value

a length 2 list of pbp tibbles, one for each team involved. This list is also archived.


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