getTeamIDs | R Documentation |
This function retrieves the team ID needed for the
team
argument of getRetrosheet("play", year, team)
.
getTeamIDs(year)
year |
A single valid four-digit numeric year. |
All currently available years can be retrieved with
type.convert(substr(getFileNames()$event, 1L, 4L))
If the file exists, a named vector of IDs for the given year.
Otherwise NA
.
getTeamIDs(2010)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.