util_map_player_ids {nhlapi} | R Documentation |
Retrieve a player ids from their names
Description
Retrieve a player ids from their names
Usage
util_map_player_ids(playerNames, map = getOption("nhlapi_player_map"))
Arguments
playerNames |
|
map |
|
Value
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.
Examples
nhlapi:::util_map_player_ids(
c("Joe SAKIC", "peter Forsberg", "test")
)
[Package nhlapi version 0.1.4 Index]