vwp_setter_touch: Add a setter flag

Description Usage Arguments Details Value

View source: R/vwp_setter_touch.R

Description

Indicates whether the setter touched the ball

Usage

1
vwp_setter_touch(plays, setters)

Arguments

plays

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

setters

a character vector containing the names of all setters on the teams recorded in the 'plays' dataset. For smaller datasets, the user will typically know this. For larger datasets, it must be inferred.

Details

Due to the nature of the positions, attacks, digs/freeballs, and sets from setters are qualitatively different from these touches when played by other positions. For teams running a 6-2 offense, this function may still be worthwhile for digs and sets.

Value

The same dataset, with a column with value 1 if the player touching the ball is a setter and 0 otherwise


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