Search for a team by name and return performance statistics.
Supports partial names, typos, and case-insensitive input
via the built-in fuzzy matching engine.
Usage
get_team_info(team, series = "all", type = "summary", interactive = TRUE)
Value
A tibble of team statistics (format depends on
type), or invisible(NULL) if no match is found.
Arguments
team
Character string of the team name to search for.
Supports partial names and common misspellings
(e.g., "gibbs" finds Joe Gibbs Racing).
series
Character string ("cup", "nxs", "truck",
"all") or a pre-loaded data frame. Default is "all".
type
Character string specifying the return format:
"summary"
Career totals grouped by series
(Seasons, Career Races, # of Drivers, Wins,
Best Finish, Avg Finish, Laps Raced, Laps Led).
"season"
Season-by-season breakdown
(Races, # of Drivers, Wins, Best Finish, Avg Finish,
Laps Raced, Laps Led).
"all"
Complete race-by-race results.
interactive
Logical. When TRUE (default) and the R
session is interactive, prompts the user to select from
multiple matches. When FALSE, silently uses the first
match.
# \donttest{# Career summary across all seriesget_team_info("Joe Gibbs Racing")
# Season-by-season Cup dataget_team_info(
"Joe Gibbs Racing",
series = "cup",
type = "season")
# }