Description Usage Arguments Value Examples
Using a table of hashed names and ids, get a player id based on the name.
1 | util_map_player_id(x, map = getOption("nhlapi_player_map"))
|
x |
|
map |
|
integer(1)
, id of the player or NA_integer
if not found.
1 2 3 4 5 6 7 8 | nhlapi:::util_map_player_id(
"Joe Sakic",
data.frame(
nameMd5 = "9d2a915c8610dbc524c1bc800e010fcc",
id = 19L,
stringsAsFactors = FALSE
)
)
|
[1] 19
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.