powered by
This function retrieves the team ID needed for the team argument of getRetrosheet("play", year, team).
team
getRetrosheet("play", year, team)
getTeamIDs(year)
If the file exists, a named vector of IDs for the given year. Otherwise NA.
NA
A single valid four-digit numeric year.
All currently available years can be retrieved with type.convert(substr(getFileNames()$event, 1L, 4L))
type.convert(substr(getFileNames()$event, 1L, 4L))
# \donttest{ getTeamIDs(2010) # }
Run the code above in your browser using DataLab