process_sub: a helper function for inserting and removing players from a...

process_subR Documentation

a helper function for inserting and removing players from a lineup vector

Description

a helper function for inserting and removing players from a lineup vector

Usage

process_sub(current, player_in, player_out)

Arguments

current

the vector of player ids currently in the game

player_in

the id of the player coming into the game

player_out

the id of the player leaving the game

Value

a low to high sorted vector of the player ids on the court after the substitution is complete


kburnham/tidynbadata documentation built on Aug. 7, 2024, 12:10 a.m.