playername_lookup {baseballr}R Documentation

Look up Baseball Player Name by ID

Description

This function allows you to query the Chadwick Bureau's public register of baseball players and the various IDs associated with them in different systems of record.

Usage

playername_lookup(id)

Arguments

id

An integer or character string representing a player ID in a baseball database, cross-referenced through the Chadwick Bureau's public register of baseball players.

Value

A data frame of baseball players and the various IDs associated with them in different systems of record.

col_name types
name_first character
name_last character
name_given character
name_suffix character
name_nick character
birth_year integer
mlb_played_first integer
key_mlbam integer
key_retro character
key_bbref character
key_fangraphs integer

Examples


  try(playername_lookup(4885))
  try(playername_lookup("kaaihki01"))


[Package baseballr version 1.6.0 Index]