nba_data {ProSportsDraftData}R Documentation

NBA Draft Data

Description

A dataset of all first-round picks in the NBA, including various draft metrics.

Usage

nba_data

Format

A tibble with the following columns:

source

The source of the data.

name

The name of the player.

year

The year of the draft.

rank

The rank of the player in the draft.

round

The round in which the player was drafted.

height

The height of the player.

weight

The weight of the player.

school

The school the player attended.

college_abbreviation

The abbreviation of the college the player attended.

pros

The pros of the player's abilities.

cons

The cons of the player's abilities.

verdict

The overall verdict on the player's potential.

pre_draft_analysis

Analysis of the player before the draft.

post_draft_analysis

Analysis of the player after the draft.

ranking

The player's ranking.

player_score

The score given to the player.

position

The position the player plays.

grade

The grade given to the player.

pts_total

Total points scored by the player.

pts_per40

Points per 40 minutes played.

reb_total

Total rebounds by the player.

reb_per40

Rebounds per 40 minutes played.

ast_total

Total assists by the player.

ast_per40

Assists per 40 minutes played.

efg

Effective field goal percentage.

fga

Field goal attempts.

stl_total

Total steals by the player.

stl_per40

Steals per 40 minutes played.

blk_total

Total blocks by the player.

blk_per40

Blocks per 40 minutes played.

tpt

Three-point shots made.

tpa

Three-point attempts.

ft

Free throws made.

fta

Free throw attempts.

ts

True shooting percentage.

ts_att

True shooting attempts.

main_selling_point

The main selling point of the player.

age

The age of the player at the time of the draft.

wingspan

The wingspan of the player.

standing_reach

The standing reach of the player.

similar_player

A player with a similar profile.

profile

Profile description of the player.

analysis

An analysis of the player's potential and performance.

projection

Projection of the player's future performance.

date_of_birth

The date of birth of the player.

hometown

The hometown of the player.

high_school

The high school the player attended.

rebounding

Evaluation of the player's rebounding skills.

potential

Evaluation of the player's potential.

post_skills

Evaluation of the player's post skills.

intangibles

Evaluation of the player's intangibles.

international_team

The international team the player has been part of.

athleticism

Evaluation of the player's athleticism.

size

Evaluation of the player's size.

defense

Evaluation of the player's defensive skills.

strength

Evaluation of the player's strength.

quickness

Evaluation of the player's quickness.

leadership

Evaluation of the player's leadership skills.

jumpshot

Evaluation of the player's jumpshot.

nba_ready

Evaluation of the player's NBA readiness.

mock_draft_rank

The player's ranking in mock drafts.

big_board_rank

The player's ranking on big boards.

overall_rank

The player's overall ranking.

Examples

# Load the dataset
data(nba_data)

# View the first few rows
head(nba_data)

# View players who attended Duke
library(dplyr)
duke_players <- nba_data |>
  filter(college_abbreviation == "DUKE")
print(duke_players)

# Average score by position
avg_score_by_position <- nba_data |>
  group_by(position) |>
  summarise(avg_score = mean(player_score, na.rm = TRUE))
print(avg_score_by_position)

# Calculate the average points per 40 minutes
avg_pts_per40 <- nba_data |>
  summarise(avg_pts = mean(pts_per40, na.rm = TRUE))
print(avg_pts_per40)

# Count the number of players from each college
college_counts <- nba_data |>
  group_by(college_abbreviation) |>
  summarise(count = n())
print(college_counts)



[Package ProSportsDraftData version 1.0.3 Index]