get_turn_steps: Get replay steps for game turn

Description Usage Arguments Value

View source: R/player_turn.R

Description

Extracts the replay steps corresponding to a specified team's game turn. add_turn_info() must have been run on the replay object first.

Usage

1
get_turn_steps(replay, team = c("home", "away"), turn = 0)

Arguments

replay

A bb2_replay object

team

Which team to work on. Must be either "home" or "away"

turn

Game turn to extract. Must be a valid turn number for the replay

Value

A vector of replay stepIDs for the team and game turn.


nufflytics/nufflytics documentation built on Oct. 10, 2020, 5:27 p.m.