getPlayerTrackingData: Retrieve SportVU Player Tracking Data

Description Usage Arguments Value Examples

Description

This function retrieves Player Tracking stats (see the "Player Tracking" tab on http://stats.nba.com/.

Usage

1

Arguments

year,

the season from which to retrieve data. 2014 refers to the 2014-15 season, 2015 refers to the 2015-16 season, etc. The earliest available year for this data is 2013 (the 2013-14 season).

type,

a character vector containing one or more type of data to retrieve. The valid types are "catchShootData", "defenseData", "drivesData", "passingData", "touchesData", "pullUpShootData", "reboundingData", "shootingData", or "speedData". The default is all of them.

Value

A data frame or list of data frames (if multiple types specified) containing the requested data.

Examples

1
2
pt.data <- getPlayerTrackingData(year = 2014, c("defenseData", "catchShootData"))
str(pt.data)

llefebure/nba-stats documentation built on May 21, 2019, 7:34 a.m.