is_on: Is On 'is_on()' returns a numeric vector indicating 1 if a...

Description Usage Arguments Value

View source: R/0_dryscrape.R

Description

Is On 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 pbject

Usage

1
is_on(player, pbp, venue)

Arguments

player

the player.

pbp

data.frame. The play-by-play.

venue

character. "home" oe "away".

Value

a numeric vector.


deepfriar/dryscrape documentation built on Nov. 5, 2019, 2:27 p.m.