Description Usage Arguments Value Examples
Retrieve a player ids from their names
util_map_player_ids(playerNames, map = getOption("nhlapi_player_map"))
integer(), named vector of player ids,
'NA_integer“ for those names where id was not
found. In case a player name has multiple ids,
all of them are returned.
1 2 3
nhlapi:::util_map_player_ids( c("Joe SAKIC", "peter Forsberg", "test") )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.