| nhl_players {nhlapi} | R Documentation |
Retrieve metadata for players based on names or ids
Description
Retrieves information on players from the NHL API based on
playerNames or playerIds. If playerNames are provided,
they take precedence over playerIds.
Usage
nhl_players(playerNames, playerIds = NULL)
Arguments
playerNames |
|
playerIds |
|
Value
data.frame, with information on selected players.
Examples
## Not run:
# With player names
nhl_players(c("joe SAKIC", "patrick roy"))
# With playerIds
nhl_players(playerIds = c(8451101, 8458554))
## End(Not run)
[Package nhlapi version 0.1.4 Index]