find_serves: Find serves

View source: R/indicators.R

find_servesR Documentation

Find serves

Description

Find serves

Usage

find_serves(x)

Arguments

x

data.frame: the plays component of a datavolley object, as returned by dv_read()

Value

a logical vector, giving the indices of the rows of x that correspond to serves

See Also

dv_read plays

Examples

## Not run: 
x <- dv_read(dv_example_file(), insert_technical_timeouts=FALSE)
serve_idx <- find_serves(plays(x))
## number of serves by team
table(plays(x)$team[serve_idx])

## End(Not run)


raymondben/datavolley documentation built on April 14, 2024, 11:31 p.m.