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 wehoop_data tibble, one row per team:

col_nametypedescription
team_uuidcharacterSportality platform team uuid.
genius_team_idintegerGenius team id of the same team (home_team_id / away_team_id of the genius schedule frames).

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 wehoop_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 ───────────────────────────── wehoop 3.1.0 ──
#> ℹ Data updated: 2026-10-22 02:36:27 UTC
#> # A tibble: 2 × 2
#>   team_uuid genius_team_id
#>   <chr>              <int>
#> 1 a1                   101
#> 2 b2                   102
# }