Player season totals of one team in a season, optionally one period and sorted.
Endpoint: GET https://prod.rosetta.nbl.com.au/get/{org}/stats/leaders/for/season/id/{season_id}/team/{team_code}
Usage
nbl_rosetta_team_stats_leaders(
season_id,
team_code,
org = "nbl",
limit = NULL,
period = NULL,
sort = NULL
)Arguments
- season_id
(character required): Season id: the DataCore season id (season_id of nbl_rosetta_seasons) or Rosetta's own id (rosetta_season_id); either is accepted. Not the year.
- team_code
(character required): Team code (team_code of nbl_rosetta_teams), e.g. PER for the Perth Wildcats.
- org
(character default
"nbl"): Organisation: nbl (men's NBL), wnbl (women's) or nbl1 (the second tier, men's and women's conferences). One of"nbl","wnbl","nbl1".- limit
(integer default
NULL): Rows to return. Omitted = a page large enough for the whole list (a short page cut by Rosetta's path cache is refused).- period
(integer default
NULL): Period to keep: 0 = whole game, 1-4 quarters, 5 and up overtime. Sent asfilter[period].- sort
(character default
NULL): Sort key; a leading minus sorts descending, e.g. -points.
Value
A hoopR_data tibble with one row per player and period.
Its columns are listed in return_columns
(subset(return_columns, fn == "nbl_rosetta_team_stats_leaders")) and in the searchable
return columns article.
Details
Source, terms of use, request pacing, seasons, ids, coverage and error classes of this family: see the notes in nbl_rosetta_seasons().
nbl_rosetta_team_stats_leaders(
org = "nbl", period = 0, season_id = "1f8e4a79-e98b-457b-85a5-e4b898c6c0bd",
sort = "-points", team_code = "PER"
)See also
family_nbl_rosetta lists every function in this family.
