get_shotchart: Get Shot Chart Data

Description Usage Value Examples

View source: R/get_data.R

Description

Get shot chart data for a player using the NBA API. See make_url for details on the parameter arguments.

Usage

1
2
3
4
5
6
get_shotchart(SeasonType = "", LeagueID = "", Season = "",
  PlayerID = "", TeamID = "", GameID = "", ContextMeasure = "",
  PlayerPosition = "", DateFrom = "", DateTo = "", GameSegment = "",
  LastNGames = "", Location = "", Month = "", OpponentTeamID = "",
  Outcome = "", SeasonSegment = "", VSConference = "", VSDivision = "",
  RookieYear = "", Period = "", StartPeriod = "", EndPeriod = "")

Value

A data.frame containing shot chart data.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Pull shot chart data for all players in the Cleveland Cavaliers
sc_data <- get_shotchart(
                     SeasonType = "Regular+Season",
                     LeagueID = "00",
                     Season = "2016-17",
                     PlayerID = "0",
                     TeamID = "1610612739",
                     GameID = "",
                     ContextMeasure = "FGA",
                     PlayerPosition = "",
                     DateFrom = "",
                     DateTo = "",
                     GameSegment = "",
                     LastNGames = "0",
                     Location = "",
                     Month = "0",
                     OpponentTeamID = "0",
                     Outcome = "",
                     SeasonSegment = "",
                     VSConference = "",
                     VSDivision = "",
                     RookieYear = "",
                     Period = "0",
                     StartPeriod = "",
                     EndPeriod = "")

imadmali/NBAapi documentation built on May 6, 2019, 2:31 p.m.