Description Usage Arguments Value Examples
For many endpoints, PlayerID or TeamID are required parameters. This function
searches the mapping returned by getIDMappings
for a specified player or team,
and it returns the matches. These ID's are used as parameters to pass in to
getGenericData
for several endpoints.
1 | searchIDMappings(player = NA, team = NA, active = TRUE)
|
player, |
player name to search for as a regex pattern (see regex) |
team, |
team name to search for as a regex pattern (see regex) |
active, |
flag indicating that only active players should be searched |
Returns a list containing one or two (depending on which of player and team is specified) data frame(s) containing matches.
1 2 | searchIDMappings(player = "curry")
searchIDMappings(player = "curry", team = "golden state")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.