AddPossessions: Add Possessions

Description Usage Arguments Value

View source: R/AddPossessions.R

Description

Adds the possession number and contact number within possession

Usage

1

Arguments

plays

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

Value

The same object, with three new columns: possession_start - whether the touch starts a new possession, possession_number - the number of the possession - Serve = 1, first ball = 2, then incremented contact_number - the number of the contact within the possession

Contact number 4 is common (usually corresponding to a block touch), contact numbers above 4 are rare but do occasionally happen


dpwynne/volleyR documentation built on Oct. 14, 2021, 6:52 a.m.