View source: R/torvik_ratings.R
| torvik_ratings | R Documentation |
Get year-end / current T-Rank team ratings and adjusted efficiencies from barttorvik.com.
Pulls the full T-Rank team table for a season (the {year}_team_results.csv
file). No API key is required. Data is available from 2008 to present.
torvik_ratings(year = most_recent_mbb_season())
year |
(integer required): Season, in 4-digit ending-year format
(e.g. |
A hoopR_data tibble with one row per team:
| col_name | types | description |
| rank | integer | Overall T-Rank (barthag) rank. |
| team | character | Team name. |
| conf | character | Conference abbreviation. |
| record | character | Overall win-loss record. |
| adjoe | numeric | Adjusted offensive efficiency (pts/100 poss). |
| oe_rank | integer | National rank of adjusted offensive efficiency. |
| adjde | numeric | Adjusted defensive efficiency (pts/100 poss). |
| de_rank | integer | National rank of adjusted defensive efficiency. |
| barthag | numeric | Power rating: win probability vs. an average team. |
| proj_w | numeric | Projected wins. |
| proj_l | numeric | Projected losses. |
| pro_con_w | numeric | Projected conference wins. |
| pro_con_l | numeric | Projected conference losses. |
| con_rec | character | Conference record. |
| sos | numeric | Strength of schedule. |
| ncsos | numeric | Non-conference strength of schedule. |
| consos | numeric | Conference strength of schedule. |
| qual_o | numeric | Quality-adjusted offensive efficiency. |
| qual_d | numeric | Quality-adjusted defensive efficiency. |
| qual_barthag | numeric | Quality-adjusted power rating. |
| wab | numeric | Wins above bubble. |
| wab_rk | integer | National rank of wins above bubble. |
| adjt | numeric | Adjusted tempo (possessions per 40 minutes). |
| year | integer | Season (4-digit ending-year; echoes the year argument). |
Additional projected / opponent / conference split columns (proj_sos,
opp_oe, con_adj_oe, con_pf, fun, ...) are also returned.
Other Torvik Functions:
torvik_game_schedule(),
torvik_game_stats(),
torvik_ncaa_results(),
torvik_player_stats(),
torvik_team_factors()
try(torvik_ratings(year = 2024))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.