GetPlayerId: Search player id using name

Description Usage Arguments Value Examples

View source: R/db_retrieval.R

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

1
GetPlayerId(player_name)

Arguments

player_name

character, players full name

Value

int, player id number

Examples

1
2
3
SetDbPath(example = TRUE)
AddGameEvents(2019020001)
GetPlayerId("John Tavares")

nhlscrape documentation built on March 26, 2020, 5:29 p.m.