customize_msf_pbp: Transform raw pbp data so that it is specific to one of the...

customize_msf_pbpR Documentation

Transform raw pbp data so that it is specific to one of the teams

Description

Used internally by process_msf_pbp()

Usage

customize_msf_pbp(plays, team_id, opponent_id, loc)

Arguments

plays

a raw data.frame from msf play-by-play data

team_id

id of the reference team

opponent_id

id of the opponent team

loc

either 'home' or 'away' indicating the location from the perspective of the reference team

Value

a data.frame with customized pbp data


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