Skip to contents

Get ESPN NHL Team Record

Usage

espn_nhl_team_record(team_id, ...)

Arguments

team_id

ESPN team identifier (character or numeric, e.g. "4" for Chicago Blackhawks).

...

Reserved for forward compatibility.

Value

A fastRhockey_data tibble with one row per record type (overall/home/away) when data is available. The /record endpoint currently returns an empty response for NHL; an empty tibble is returned with a cli warning. Columns when populated include team_id, description, type, summary, and one numeric column per stat.

See also

family_espn_nhl lists every function in this family.

Author

Saiem Gilani

Examples

# \donttest{
  try(espn_nhl_team_record(team_id = "4"))
#> ! ESPN NHL team record returned no data for team_id=4. This endpoint may not be populated for NHL.
#> data frame with 0 columns and 0 rows
# }