get_team_info | R Documentation |
Enhanced Get Team Info with Smart Matching
get_team_info(team, series = "all", type = "summary", interactive = TRUE)
team |
Character string of team name to search for |
series |
Either character string ("cup", "xfinity", "truck", "all") or data frame |
type |
Character string specifying return type ("summary", "season", "all") |
interactive |
Logical. Is the session interactive? |
Tibble with team statistics or NULL if no exact match
## Not run:
# Get Joe Gibbs Racing career summary
get_team_info("Joe Gibbs Racing")
# Handle partial name - will prompt for selection
get_team_info("joe gib racing")
# Found 1 teams matching 'joe gib racing':
# 1 - Joe Gibbs Racing
# Select team number: 1
# Team: Joe Gibbs Racing
# Returns summary table
# Get season-by-season data for Cup series only
get_team_info("Joe Gibbs Racing", series = "cup", type = "season")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.