Learn R Programming

baseballr (version 1.6.0)

playername_lookup: 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)

Value

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

col_nametypes
name_firstcharacter
name_lastcharacter
name_givencharacter
name_suffixcharacter
name_nickcharacter
birth_yearinteger
mlb_played_firstinteger
key_mlbaminteger
key_retrocharacter
key_bbrefcharacter
key_fangraphsinteger

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.

Examples

Run this code
# \donttest{
  try(playername_lookup(4885))
  try(playername_lookup("kaaihki01"))
# }

Run the code above in your browser using DataLab