A dataset containing the NBA Games table on nba.com

nba_games_2021

Format

A data frame with 1832 rows and 47 variables:

yearSeason

Season in which the game was played (YYYY)

slugSeason

Season in which the game was played (YYYY-YY)

slugLeague

Always given as NBA

typeSeason

Regular season data

dateGame

Date in YYYY-MM-DD

idGame

Game ID on nba.com

numberGameTeamSeason

slugTeam game number in the season

nameTeam

Full team name

idTeam

Team ID on nba.com

isB2B

Logical for back-to-back game

isB2BFirst

Logical for first game of back-to-back game

isB2BSecond

Logical for second game of back-to-back game

locationGame

Home (H) or Away (A)

slugMatchup

Team One vs. Team Two

slugTeam

Team abbreviation

countDaysRestTeam

Days between previous game and this game

countDaysNextGameTeam

Days until next game

slugOpponent

Opponent abbreviation

slugTeamWinner

Team that won (abbreviation)

slugTeamLoser

Team that lost (abbreviation)

outcomeGame

Result for slugTeam (W or L)

isWin

Logical for slugTeam winning

fgmTeam

slugTeam field goals made

fgaTeam

slugTeam field goal attempts

pctFGTeam

slugTeam field goal percentage

fg3mTeam

slugTeam three point field goals made

fg3aTeam

slugTeam three point field goal attempts

pctFG3Team

slugTeam three point field goal percentage

pctFTTeam

slugTeam free throw percentage

hasVideo

Logical if game video exists

fg2mTeam

slugTeam two point field goals made

fg2aTeam

slugTeam two point field goal attempts

pctFG2Team

slugTeam two point field goal percentage

minutesTeam

Total minutes played

ftmTeam

slugTeam free throws made

ftaTeam

slugTeam free throw attempts

orebTeam

slugTeam offensive rebounds

drebTeam

slugTeam defensive rebounds

trebTeam

slugTeam total rebounds

astTeam

slugTeam total assists

stlTeam

slugTeam total steals

blkTeam

slugTeam total blocks

tovTeam

slugTeam total turnovers

pfTeam

slugTeam total personal fouls

ptsTeam

slugTeam total points scored

plusminusTeam

Margin of game as slugTeam score minus slugOpponent score

urlTeamSeasonLogo

url of slugTeam logo