Learn R Programming

baseballr (version 1.5.0)

mlb_awards_recipient: MLB Award Recipients

Description

MLB Award Recipients

Usage

mlb_awards_recipient(
  award_id = NULL,
  sport_id = NULL,
  league_id = NULL,
  season = NULL
)

Value

Returns a tibble with the following columns

col_nametypes
award_idcharacter
award_namecharacter
datecharacter
seasoncharacter
votesinteger
notescharacter
player_idinteger
player_linkcharacter
player_name_first_lastcharacter
player_primary_position_codecharacter
player_primary_position_namecharacter
player_primary_position_typecharacter
player_primary_position_abbreviationcharacter
team_idinteger
team_linkcharacter

Arguments

award_id

award_id to return a directory of players for a given award.

sport_id

sport_id to return a directory of players for a given aware in a specific sport.

league_id

league_id(s) to return a directory of players for a given award in a specific league. Format '103,104'

season

Year(s) to return a directory of players for a given award in a given season.

Examples

Run this code
# \donttest{
  try(mlb_awards_recipient(award_id = 'MLBHOF', season = 2020))
# }

Run the code above in your browser using DataLab