ds.is_on: Is On

Description Usage Arguments Value

Description

is_on() returns a numeric vector indicating 1 if a given player is on ice during the event corresponding to the row index in the given PBP object

Usage

1
ds.is_on(player, pbp, venue)

Arguments

player

a vector of players

pbp

a pbp object

venue

home or away

Value

numeric vector of 1 or 0 indicating player on ice


pbulsink/hockeyR documentation built on May 15, 2019, 4:16 p.m.