searchIDMappings: Search ID mappings

Description Usage Arguments Value Examples

Description

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.

Usage

1
searchIDMappings(player = NA, team = NA, active = TRUE)

Arguments

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

Value

Returns a list containing one or two (depending on which of player and team is specified) data frame(s) containing matches.

Examples

1
2
searchIDMappings(player = "curry")
searchIDMappings(player = "curry", team = "golden state")

llefebure/nba-stats documentation built on May 21, 2019, 7:34 a.m.