Phase is either "Serve", "Reception" (serve reception and the set and attack immediately following it, as well as the opposition block on that attack), or "Transition" (all play actions after that)
Arguments
- x
datavolleyplays: the plays component of a datavolley object as returned by
dv_read
- method
string: "default" (uses the
team_touch_id
andskill
values to figure out phase), or "alt" (uses the sequences ofskill
values only. This is slower and probably less reliable, but will be more likely to give correct results in some situations (e.g. if the DataVolley file has been scouted in practice mode, and all actions have been assigned to the one team)
Examples
if (FALSE) {
x <- dv_read(dv_example_file(), insert_technical_timeouts = FALSE)
px <- plays(x)
px$phase <- play_phase(px)
}