getCodes: Obtain game codes needed to construct XML file names

Description Usage Arguments Examples

Description

Obtain game codes needed to construct XML file names

Usage

1
getCodes(init.date = "05/26/2013", id = "00", offset = paste(0:10))

Arguments

init.date

String specifying the date (MM/DD/YYYY) to start obtaining game codes.

id

Character vector with any combination of '00', '10', and/or '20'. These codes stand for NBA, WNBA and D-League, respectively.

offset

Character vector of non-negative integers. This will control how many days to go beyond the init.date

Examples

1
2
3
4
5
6
7
## Not run: 
codes <- getCodes()
codes <- getCodes(id=c("00", "10"))
#Takes awhile
codes <- getCodes(init.date="09/01/2012", id=c("00", "10", "20"), offset=paste(0:500))

## End(Not run)

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