Skip to contents

One tidy franchise timeline. nba_franchisehistory() returns the active (FranchiseHistory) and DefunctTeams sets separately; these share a schema, so this row-binds them (tactic B) and tags each row active / defunct.

Usage

nba_tidy_franchise_history(...)

Arguments

...

Additional arguments passed to nba_franchisehistory() (e.g. proxy).

Value

A hoopR_data tibble, one row per franchise era, with a leading franchise_status column (active / defunct).

See also

Other NBA Combined Datasets: nba_tidy_boxscore(), nba_tidy_player_profile()

Examples

# \donttest{
  try(nba_tidy_franchise_history())
#>  2026-06-13 07:38:07.406248: Invalid arguments or no franchise history data available for {team_id}!
#>  Args: league_id = "00"
#>  Error: Failed to perform HTTP request. Caused by error in `curl::curl_fetch_memory()`: ! Timeout was reached [stats.nba.com]: Operation timed out after 60002 milliseconds with 0 bytes received
#>  2026-06-13 07:38:07.418206: No NBA franchise history available!
#>  Error: No franchise history returned
#> data frame with 0 columns and 0 rows
# }