Learn R Programming

LogisticEnsembles (version 0.5.0)

Lebron: Lebron—A logistic data set, with the result indicating whether or not Lebron scored on each shot in the data set.

Description

This dataset opens the door to the intricacies of the 2023 NBA season, offering a profound understanding of the art of scoring in professional basketball.

Usage

Lebron

Arguments

Format

An object of class data.frame with 1533 rows and 12 columns.

Details

top

The vertical position on the court where the shot was taken

left

The horizontal position on the court where the shot was taken

date

The date when the shot was taken. (e.g., Oct 18, 2022)

qtr

The quarter in which the shot was attempted, typically represented as "1st Qtr," "2nd Qtr," etc.

time_remaining

The time remaining in the quarter when the shot was attempted, typically displayed as minutes and seconds (e.g., 09:26).

result

Indicates whether the shot was successful, with "TRUE" for a made shot and "FALSE" for a missed shot

shot_type

Describes the type of shot attempted, such as a "2" for a two-point shot or "3" for a three-point shot

distance_ft

The distance in feet from the hoop to where the shot was taken

lead

Indicates whether the team was leading when the shot was attempted, with "TRUE" for a lead and "FALSE" for no lead

lebron_team_score

The team's score (in points) when the shot was taken

opponent_team_score

The opposing team's score (in points) when the shot was taken

opponent

The abbreviation for the opposing team (e.g., GSW for Golden State Warriors)

team

The abbreviation for LeBron James's team (e.g., LAL for Los Angeles Lakers)

season

The season in which the shots were taken, indicated as the year (e.g., 2023)

color

Represents the color code associated with the shot, which may indicate shot outcomes or other characteristics (e.g., "red" or "green")

@source <https://www.kaggle.com/datasets/dhavalrupapara/nba-2023-player-shot-dataset>