make_url: Construct NBA API URL

Description Usage Arguments Value

View source: R/make_url.R

Description

Construct an NBA URL given various API arguments.

Usage

1
2
3
4
5
6
7
8
make_url(datatype = NULL, SeasonType = "", LeagueID = "", Season = "",
  IsOnlyCurrentSeason = "", PlayerID = "", TeamID = "", GameID = "",
  ContextMeasure = "", PlayerPosition = "", DateFrom = "", DateTo = "",
  GameSegment = "", LastNGames = "", Location = "", Month = "",
  OpponentTeamID = "", Outcome = "", SeasonSegment = "",
  VSConference = "", VSDivision = "", RookieYear = "", Period = "",
  StartPeriod = "", EndPeriod = "", StartRange = "", EndRange = "",
  RangeType = "")

Arguments

datatype

One of "shotchartdetail", ...

SeasonType

One of "Regular+Season", "Pre+Season","Playoffs", or "All+Star".

LeagueID

One of "00" (NBA) or "01" (ABA).

Season

Of the format "YYYY-YY". For example "2016-17".

IsOnlyCurrentSeason

TBD.

PlayerID

Player identifier.

TeamID

Team identifier.

GameID

Game identifier.

ContextMeasure

TBD.

PlayerPosition

TBD.

DateFrom

TBD.

DateTo

TBD.

GameSegment

TBD.

LastNGames

TBD.

Location

TBD.

Month

One of "0" (all months), "1" to "7" (regular season), or "8"/"9" (playoffs).

OpponentTeamID

TBD.

Outcome

TBD.

SeasonSegment

TBD.

VSConference

TBD.

VSDivision

TBD.

RookieYear

TBD.

Period

TBD.

StartPeriod

TBD.

EndPeriod

TBD.

Value

NBA API url string.


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