scrape_season_advanced: Scrape player advanced statistics for a given season.

Description Usage Arguments Value

View source: R/scrape_season.R

Description

This function scrapes the advanced player statistics for a single season.

Usage

1

Arguments

year

The year that the season in question finished. i.e. 2015 would return the statistics for the season 2014-15.

Value

A tibble with a row for each player.

The fields are:

Season

The season these statistics are for

Player

Player name

PlayerId

https://www.basketball-reference.com/ player page identifier

Pos

Position

Age

Age of player at the start of February 1st of that season

Tm

Team

G

Games

PER

Player efficiency rating: A measure of per-minute production standardized such that the league average is 15.

TS%

True shooting percentage: A measure of shooting efficiency that takes into account 2-point field goals, 3-point field goals, and free throws.

3PAr

3-point attempt rate: The percentage of field goal attempts taken from 3-point range

FTr

Free throw attempt rate: The number of free throw attempts per field goal attempt

ORB%

Offensive rebound percentage: An estimate of the percentage of available offensive rebounds a player grabbed while he was on the floor

DRB%

Defensive rebound percentage: An estimate of the percentage of available defensive rebounds a player grabbed while he was on the floor

TRB%

Total rebound percentage: An estimate of the percentage of available rebounds a player grabbed while he was on the floor

AST%

Assist percentage: An estimate of the percentage of team-mate field goals a player assisted while he was on the floor

STL%

Steal percentage: An estimate of the percentage of opponent possessions that end with a steal by the player while he was on the floor

BLK%

Block percentage: An estimate of opponent two-point field goal attempts blocked by the player while he was on the floor

TOV%

Turnover percentage: An estimate of turnovers committed per 100 plays

USG%

Usage percentage: An estimate of the percentage of team plays used by a player while he was on the floor

OWS

Offensive win shares: An estimate of the number of wins contributed by a player due to his offense

DWS

Defensive win shares: An estimate of the number of wins contributed by a player due to his defense

WS

Win shares: An estimate of the number of wins contributed by a player

WS/48

Win shares per 48 minutes: An estimate of the number of wins contributed by a player per 48 minutes (the league average is .100)

OBPM

Offensive box plus/minus: A box score estimate of the offensive points per 100 possessions a player contributed above a league average player, translated to an average team

DBPM

Defensive box plus/minus: A box score estimate of the defensive points per 100 possessions a player contributed above a league average player, translated to an average team

BPM

Box plus/minus: A box score estimate of the points per 100 possessions a player contributed above a league average player, translated to an average team

VORP

Value over replacement player: A box score estimate of the points per 100 team possessions that a player contributed above a replacement level (-2.0) player, translated to an average team and prorated to an 82-game season. Multiply by 2.70 to convert to wins over replacement.


TambourineMan88/bballR documentation built on Dec. 11, 2019, 7:23 p.m.