mlb_team_info function

MLB Team Info

MLB Team Info

mlb_team_info(team_id = NULL, season = NULL, sport_id = NULL)

Arguments

  • team_id: The team_id to return team data for.
  • season: The season to return team data for the given year.
  • sport_id: The sport_id to return a directory of team data for a particular club in a sport.

Returns

Returns a tibble with the following columns

col_nametypes
all_star_statuscharacter
team_idinteger
team_full_namecharacter
linkcharacter
seasoninteger
team_codecharacter
file_codecharacter
team_abbreviationcharacter
team_namecharacter
location_namecharacter
first_year_of_playcharacter
short_namecharacter
franchise_namecharacter
club_namecharacter
activelogical
venue_idinteger
venue_namecharacter
venue_linkcharacter
spring_venue_idinteger
spring_venue_linkcharacter
league_idinteger
league_namecharacter
league_linkcharacter
sport_idinteger
sport_linkcharacter
sport_namecharacter

Examples

try(mlb_team_info(team_id = 147))
  • Maintainer: Saiem Gilani
  • License: MIT + file LICENSE
  • Last published: 2024-01-16

Downloads (last 30 days):