Convenience wrappers binding the Genius family to the Super League Basketball (UK) (men's; Genius ORG SLB, LiveStats ORG SLB). Season rule: END year; the label span 2025-26 = 2026.
slb_competitions(): every competition of theSLBorg, with its END-year season (genius_competitions()).slb_schedule(): every match of one season (genius_schedule()).slb_team_box(),slb_player_box(),slb_pbp(),slb_shots(): one finished game (genius_team_box(),genius_player_box(),genius_pbp(),genius_shots()).
Usage
slb_competitions(return_parsed = TRUE)
slb_schedule(season = NULL, comp_id = NULL, round_number = -1, return_parsed = TRUE)
slb_team_box(match_id, return_parsed = TRUE)
slb_player_box(match_id, return_parsed = TRUE)
slb_pbp(match_id, return_parsed = TRUE)
slb_shots(match_id, return_parsed = TRUE)Arguments
- season
END-year season (see the season rule).
NULL(default) = the newest season the org lists.- comp_id
Genius competition id; skips the season lookup (needed when the label rule matches several competitions).
- round_number
Round to list; -1 (default) lists every round.
- match_id
Genius match id (
match_idofslb_schedule()) of a game of this competition.- return_parsed
Parse into a tibble (default
TRUE);FALSEreturns the raw list.
Value
The base function's hoopR_data tibble, same columns and types (the raw list when return_parsed = FALSE) of each function:
slb_competitions(): the columns ofgenius_competitions().slb_schedule(): the columns ofgenius_schedule().slb_team_box(): the columns ofgenius_team_box().slb_player_box(): the columns ofgenius_player_box().slb_pbp(): the columns ofgenius_pbp().slb_shots(): the columns ofgenius_shots().
Details
The season's competition is picked from the SLB chooser by the label rule include = Championship, exclude = ^$ (case-insensitive); cups and play-offs have their own comp_id. Several matching competitions raise hoopR_bad_request (pass comp_id); none raises hoopR_no_data.
Genius match ids are one global sequence shared by every customer and data.json names no competition, so each game alias checks the id on the game's LiveStats shell (/u/SLB/<match_id>/: one extra request per game, cached per process for an hour): its competition name must pass the label rule. Another org's game, a cup or play-off game of SLB, or a shell request that fails twice (or names no competition) raises hoopR_asset_fetch. The base genius_*() function reads any game unchecked.
Access, proxy and error notes: see genius_game().
See also
Other Genius Functions:
bal_competition,
esake_competition,
genius_competition_games(),
genius_competitions(),
genius_game(),
genius_game_crosswalk(),
genius_match_competition(),
genius_pbp(),
genius_player_box(),
genius_schedule(),
genius_schedule_embed(),
genius_shots(),
genius_team_box(),
genius_team_crosswalk(),
genius_widget_games(),
lnbm_competition,
lub_competition,
nznbl_competition
