get_player_data: Get data on one NBA player

Description Usage Arguments Value Examples

View source: R/get_player_data.R

Description

This function retrieves data for one specific NBA player

Usage

1

Arguments

slug

The slug for the player you're interested in. This can be found using the get_players() function, and is part of the URL to the data of a player, e.g., if the URL is https://www.basketball-reference.com/players/a/abdelal01.html then the slug is abdelal01.

Value

A data.frame with data from one player.

The columns include:

player

Player name

season

What season is this data from?

age

Age of player in season

lg

League, e.g. NBA, ABA

pos

Position played

g

Number of games played

gs

Number of games as starter

mp

Minutes played per game

fg

Field goals per game

fga

Field goal attempts per game

fg%

Field goal percentage

3p

3-point field goals per game

3pa

3-point attempts per game

3p%

3-point field goal percentage

2p

2-point field goals per game

2pa

2-point attempts per game

2p%

2-point field goal percentage

efg%

Effective field goal percentage

ft

Free throws per game

fta

Free throw attempts per game

ft%

Free throw percentage

orb

Offensive rebounds per game

drb

Defensive rebounds per game

trb

Total rebounds per game

ast

Assists per game

stl

Steals per game

blk

Blocks per game

tov

Turnovers per game

pf

Personal fouls per game

pts

Points per game

Examples

1
2
abdelnaby_d <- get_player_data('abdelal01')
jordan_d <- get_player_data('jordami01')

mbjoseph/bbr documentation built on May 22, 2019, 12:20 p.m.