find_serves | R Documentation |
Find serves
find_serves(x)
x |
data.frame: the plays component of a datavolley object, as returned by |
a logical vector, giving the indices of the rows of x that correspond to serves
dv_read
plays
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.