util_map_player_id {nhlapi} | R Documentation |
Retrieve a player id from the name
Description
Using a table of hashed names and ids, get a player id based on the name.
Usage
util_map_player_id(x, map = getOption("nhlapi_player_map"))
Arguments
x |
|
map |
|
Value
integer(1)
, id of the player or NA_integer
if not found.
Examples
nhlapi:::util_map_player_id(
"Joe Sakic",
data.frame(
nameMd5 = "9d2a915c8610dbc524c1bc800e010fcc",
id = 19L,
stringsAsFactors = FALSE
)
)
[Package nhlapi version 0.1.4 Index]