subset_pbp_by_player_ids: subset a pbp datset according to players that must be, or...

View source: R/lineup_helpers.R

subset_pbp_by_player_idsR Documentation

subset a pbp datset according to players that must be, or must not be, in the current lineup

Description

subset a pbp datset according to players that must be, or must not be, in the current lineup

Usage

subset_pbp_by_player_ids(pbp, includes, excludes)

Arguments

pbp

a processed play-by-play dataset

includes

a vector of player ids that must be in gs_this_pof_vec

excludes

a vector of player ids that myst not be in gs_this_pof_vec

Value

a pbp dataset subset according to includes and excludes

See Also

Other lineup_helpers: get_lineup_initials(), get_lineup_last_names(), tag_pbp_by_player_ids()


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