scrape_game_logs: Scrape player per game statistics for a given season.

Description Usage Arguments Value

View source: R/scrape_game_logs.R

Description

This function scrapes the per game player statistics for a single season.

Usage

1
scrape_game_logs(player_id, year)

Arguments

player_id

The basketball-reference player page identifier code.

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 regular season the game took place in

Player

Player name

G

Season game

Date

The date the game took place on

Age

The age of the player on the day of the game

Tm

Team

Opp

Opposition

GS

Games started

MP

Minutes played

FG

Field goals

FGA

Field goal attempts

FG%

Field goal percentage

3P

3-point field goals

3PA

3-point field goal attempts

3P%

Field goal percentage on 3-point field goal attempts

FT

Free throws

FTA

Free throw attempts

FT%

Free throw percentage

ORB

Offensive rebounds

DRB

Defensive rebounds

TRB

Total rebounds

AST

Assists

STL

Steals

BLK

Blocks

TOV

Turnovers

PF

Personal fouls

PTS

Points

GmSc

Game score

+/-

Plus minus (possibly)

PlayerId

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


bobbyingram/bballR documentation built on Dec. 11, 2019, 9:52 a.m.