vwp_receiving_player: Assign receiving player

Description Usage Arguments Value

View source: R/vwp_receiving_player.R

Description

Assigns the receiving player to the serve. If the serve is not received (e.g., error), assigns TEAM as the receiving player. The model does not compute a separate point-win probability for a reception, so this can be used to assign credit for receptions. Additionally, adds a receiving player TEAM for unforced errors to make the win-probability differences balance out.

Usage

1

Arguments

plays

a dv_plays object or data frame containing play-by-play data

Value

The same data frame, with a "receiving_player" variable indicating which player (if any) received the serve


dpwynne/volleyWP documentation built on Dec. 20, 2021, 1:13 a.m.