get_driver_info | R Documentation |
Enhanced Get Driver Info with Smart Matching
get_driver_info(driver, series = "all", type = "summary", interactive = TRUE)
driver |
Character string of driver 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? |
Tibble with driver statistics or NULL if no exact match
## Not run:
# Get Christopher Bell's career summary
get_driver_info("Christopher Bell")
# Handle misspelling - will prompt for selection
get_driver_info("cristopher bell")
# Found 1 drivers matching 'cristopher bell':
# 1 - Christopher Bell
# Select driver number: 1
# Driver: Christopher Bell
# Returns summary table
# Get season-by-season data for Cup series only
get_driver_info("Christopher Bell", series = "cup", type = "season")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.