View source: R/mlb_team_info.R
| mlb_team_info | R Documentation |
MLB Team Info
mlb_team_info(team_id = NULL, season = NULL, sport_id = NULL)
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 a tibble with the following columns
| col_name | types |
| all_star_status | character |
| team_id | integer |
| team_full_name | character |
| link | character |
| season | integer |
| team_code | character |
| file_code | character |
| team_abbreviation | character |
| team_name | character |
| location_name | character |
| first_year_of_play | character |
| short_name | character |
| franchise_name | character |
| club_name | character |
| active | logical |
| venue_id | integer |
| venue_name | character |
| venue_link | character |
| spring_venue_id | integer |
| spring_venue_link | character |
| league_id | integer |
| league_name | character |
| league_link | character |
| sport_id | integer |
| sport_link | character |
| sport_name | character |
try(mlb_team_info(team_id = 147))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.