View source: R/get_manufacturer.R
get_manufacturer_info | R Documentation |
Retrieves and summarizes NASCAR race statistics for a specified manufacturer across different racing series. The function provides flexibility in viewing career summaries, season-by-season breakdowns, or complete race-by-race data.
get_manufacturer_info(manufacturer, series = "all", type = "summary")
manufacturer |
Character string specifying a manufacturer name (case-insensitive, fuzzy matching available) |
series |
Character string specifying the racing series to analyze. Must be one of:
|
type |
Character string specifying the type of summary to return. Must be one of:
|
A tibble containing manufacturer statistics based on the specified type:
For type = 'summary': Career statistics grouped by series
For type = 'season': Season-by-season breakdown
For type = 'all': Complete race-by-race data
if (interactive()) {
# Get career summary for Toyota across all series
get_manufacturer_info("Toyota")
# Get Cup series statistics only
get_manufacturer_info("Ford", series = "cup")
# Get season-by-season breakdown for Truck series
get_manufacturer_info("Chevrolet", series = "truck", type = "season")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.