Skip to contents

Sportality platform team uuid <-> Genius team id, from a Sportality frame that carries both.

The Genius ids are the ones the genius schedule frames call home_team_id / away_team_id. No request is made.

Usage

genius_team_crosswalk(df, source)

Arguments

df

A Sportality data frame.

source

One of "sportality_standings", "sportality_teams", "sportality_players".

Value

A hoopR_data tibble with one row per team. Its columns are listed in return_columns (subset(return_columns, fn == "genius_team_crosswalk")) and in the searchable return columns article.

Details

Sources: sportality_standings (team_uuid / team_id), sportality_teams (info_uuid / info_team_id) and sportality_players (info_team_uuid / info_team_id). A wrong source, a missing column, a wrong id type or a key that maps to two ids raises hoopR_bad_request.

Examples

# \donttest{
  standings <- data.frame(team_uuid = c("a1", "b2"), team_id = c(101L, 102L))
  genius_team_crosswalk(standings, "sportality_standings")
#> ── Genius LiveStats team crosswalk ────────────────────────────── hoopR 3.2.0 ──
#> ℹ Data updated: 2026-11-13 21:13:50 UTC
#> # A tibble: 2 × 2
#>   team_uuid genius_team_id
#>   <chr>              <int>
#> 1 a1                   101
#> 2 b2                   102
# }