extractShots: Extract shot location data for a single game

Description Usage Arguments Value

View source: R/extractShots.R

Description

extractShots returns a data frame with coordinate location data on every shot taken in the specified game.

Usage

1
extractShots(game_code, season)

Arguments

game_code

Integer scalar

season

Integer scalar

Value

Data frame with 25 variables:

season

Starting year of the season

game_code

Game code

num_anot

Not sure!

team_code

Team code of player taking the shot

player_id

Player ID

player_name

Full player name (Last name, First name)

action_id

Shot type and outcome

action

Full description of action_id

points

Points added with the shot

coord_x, coord_y

x-y coordinates

zone

Zone on the court

fastbreak

Was the shot taken on a fastbreak?

second_chance

Was the shot taken after an offensive rebound?

off_turnover

Was the shot taken after a turnover from the other team?

minute

Minute in the game

console

Time remaining in the shot clock

points_a

Points scored by Team A after the shot was taken

points_b

Points scored by Team B after the shot was taken

utc

Datetime when the shot was logged

make

Did the shot go in?

quarter

Quarter

seconds

Seconds elapsed since the start of the game

team_code_a

Team A code

team_code_b

Team B code


solmos/euroleaguer documentation built on Jan. 30, 2022, 3:16 p.m.