View source: R/scouting_utils.R
dv_create | R Documentation |
Create a new datavolley match object
dv_create(
match,
more,
teams,
players_h,
players_v,
video_file,
attacks = ov_simplified_attack_table(),
setter_calls = ov_default_setter_calls_table(),
winning_symbols = ov_default_winning_symbols(),
zones_or_cones = "Z",
regulation = "indoor rally point",
comments
)
match |
list or single-row data.frame: (optional) with components |
more |
list or single-row data.frame: (optional) with components |
teams |
data.frame: a 2-row data frame, with required columns |
players_h, players_v |
data.frame: with required columns |
video_file |
string: (optional) path to video file |
attacks |
data.frame: as returned by |
setter_calls |
data.frame: as returned by |
winning_symbols |
data.frame: as returned by |
zones_or_cones |
string: "Z" or "C". Will be ignored if |
regulation |
string: "indoor rally point", "beach rally point", or "indoor sideout". Will be ignored if |
comments |
character: optional vector of length up to 5, of comments |
A datavolley object
x <- dv_create(teams = data.frame(team_id = c("TM1", "TM2"), team = c("Team 1", "Team 2")),
comments = "Test file",
players_h = data.frame(firstname = toupper(letters[1:7]), lastname = "Player",
number = 1:7),
players_v = data.frame(firstname = letters[10:15], lastname = "VisPlayer",
number = 10:15))
## enter the team lineups for set 1
x <- dv_set_lineups(x, set_number = 1, lineups = list(6:1, 15:10), setter_positions = c(2, 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.