Learn R Programming

nhlscrape (version 0.1.3)

GetPlayerId: Search player id using name

Description

Gets a player id from their name. Will only work for players that were active in a game that has already been added to the database

Usage

GetPlayerId(player_name)

Arguments

player_name

character, players full name

Value

int, player id number

Examples

Run this code
# NOT RUN {
SetDbPath(example = TRUE)
AddGameEvents(2019020001)
GetPlayerId("John Tavares")

# }

Run the code above in your browser using DataLab