rotations: Get team rotations point by point

View source: R/substitutions_handler.R

rotationsR Documentation

Get team rotations point by point

Description

Get team rotations point by point

Usage

rotations(x, team, start_point_id, set_number, new_rotation, new_rotation_id)

Arguments

x

datavolley or data.frame: a datavolley object as returned by read_dv, or the plays component of that object

team

string: team name

start_point_id

vector: vector of pointids for which to return the rotation

set_number

value: Set number

new_rotation

vector: vector of player number, positioned from 1 to 6

new_rotation_id

character: as for new_rotation, but providing player IDs instead of jersey numbers

Value

list of 2 data.frames. Current data.frame, without changes, and updated data.frame, with new player rotation.

See Also

read_dv

Examples

## Not run: 
  x <- read_dv(dv_example_file(), insert_technical_timeouts=FALSE)
  new_x <- rotations(x, start_point_id = 25, new_rotation = c(9,6,15,4,12,7))

## End(Not run)

openvolley/ovscout documentation built on June 4, 2023, 2:07 a.m.