rebound: 'Rebound' data from nba.com and wnba.com

Description Usage Arguments Examples

Description

'Rebound' data from nba.com and wnba.com

Usage

1
rebound(first, last, codes, leagues = "nba", suffix = "shotchart_all.xml")

Arguments

first

String specifying the date "YYYYMMDD" to start obtaining game codes.

last

String specifying the date "YYYYMMDD" to stop obtaining game codes.

codes

Character vector of game codes with league ID as a prefix

leagues

Character vector with any combination of 'nba', 'wnba', and/or 'd' (for D-League).

suffix

character vector with suffix of the XML files to be parsed. Currently supported options are: 'boxscore.xml', 'pbp_all.xml', 'shotchart_all.xml'

Examples

1
2
3
4
5
6
## Not run: 
#all available data between May 26th and June 1st of 2013
files <- c("boxscore.xml", "pbp_all.xml", "shotchart_all.xml")
dat <- rebound(first = "20130526", last = "20130601", suffix = files)

## End(Not run)

cpsievert/bbscrapeR documentation built on May 13, 2019, 10:54 p.m.