get_team_info: Enhanced Get Team Info with Smart Matching

View source: R/find.R

get_team_infoR Documentation

Enhanced Get Team Info with Smart Matching

Description

Enhanced Get Team Info with Smart Matching

Usage

get_team_info(team, series = "all", type = "summary", interactive = TRUE)

Arguments

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?

Value

Tibble with team statistics or NULL if no exact match

Examples

## 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)

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