get_manufacturer_info: Enhanced Get Manufacturer Info with Smart Matching

View source: R/find.R

get_manufacturer_infoR Documentation

Enhanced Get Manufacturer Info with Smart Matching

Description

Enhanced Get Manufacturer Info with Smart Matching

Usage

get_manufacturer_info(
  manufacturer,
  series = "all",
  type = "summary",
  interactive = TRUE
)

Arguments

manufacturer

Character string of manufacturer 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?

Value

Tibble with manufacturer statistics or NULL if no exact match

Examples

## Not run: 
# Get Toyota career summary
get_manufacturer_info("Toyota")

# Handle misspelling - will prompt for selection
get_manufacturer_info("toyoda")
# Found 1 manufacturers matching 'toyoda':
#  1 - Toyota
# Select manufacturer number: 1
# Manufacturer: Toyota
# Returns summary table

# Get season-by-season data for Cup series only
get_manufacturer_info("Toyota", series = "cup", type = "season")

## End(Not run)

nascaR.data documentation built on June 8, 2025, 1:11 p.m.