get_manufacturer_info: Get Manufacturer Info with Smart Matching
Description
Search for a manufacturer by name and return performance
statistics. Uses fuzzy matching to handle partial names,
typos, and case-insensitive searches.
Usage
get_manufacturer_info(
manufacturer,
series = "all",
type = "summary",
interactive = TRUE
)
Value
A tibble of manufacturer statistics (format depends on
type), or invisible(NULL) if no match is found.
Arguments
manufacturer
Character string of the manufacturer name
to search for.
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, Races, Wins, Best Finish, Avg Finish,
Laps Raced, Laps Led).
"season"
Season-by-season breakdown
(Races, 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_manufacturer_info("Toyota")
# Season-by-season Cup dataget_manufacturer_info(
"Toyota",
series = "cup",
type = "season")
# }