Skip to contents

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.

Usage

torvik_ratings(year = most_recent_mbb_season())

Arguments

year

(integer required): Season, in 4-digit ending-year format (e.g. 2024 for the 2023-24 season). Defaults to most_recent_mbb_season().

Value

A hoopR_data tibble with one row per team:

col_nametypesdescription
rankintegerOverall T-Rank (barthag) rank.
teamcharacterTeam name.
confcharacterConference abbreviation.
recordcharacterOverall win-loss record.
adjoenumericAdjusted offensive efficiency (pts/100 poss).
oe_rankintegerNational rank of adjusted offensive efficiency.
adjdenumericAdjusted defensive efficiency (pts/100 poss).
de_rankintegerNational rank of adjusted defensive efficiency.
barthagnumericPower rating: win probability vs. an average team.
proj_wnumericProjected wins.
proj_lnumericProjected losses.
pro_con_wnumericProjected conference wins.
pro_con_lnumericProjected conference losses.
con_reccharacterConference record.
sosnumericStrength of schedule.
ncsosnumericNon-conference strength of schedule.
consosnumericConference strength of schedule.
qual_onumericQuality-adjusted offensive efficiency.
qual_dnumericQuality-adjusted defensive efficiency.
qual_barthagnumericQuality-adjusted power rating.
wabnumericWins above bubble.
wab_rkintegerNational rank of wins above bubble.
adjtnumericAdjusted tempo (possessions per 40 minutes).
yearintegerSeason (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.

Examples

# \donttest{
  try(torvik_ratings(year = 2024))
#> ── Bart Torvik T-Rank ratings from barttorvik.com ─────────────── hoopR 3.1.0 ──
#>  Data updated: 2026-06-13 07:39:16 UTC
#> # A tibble: 19 × 2
#>    doctype_html_public_w3c_dtd_html_4_01_transitional_en_http_www_w3_org…¹  year
#>    <chr>                                                                   <int>
#>  1 "<HTML><HEAD><META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; ch…  2024
#>  2 "<TITLE>ERROR: The request could not be satisfied</TITLE>"               2024
#>  3 "</HEAD><BODY>"                                                          2024
#>  4 "<H1>403 ERROR</H1>"                                                     2024
#>  5 "<H2>The request could not be satisfied.</H2>"                           2024
#>  6 "<HR noshade size=\"1px\">"                                              2024
#>  7 "Request blocked."                                                       2024
#>  8 "We can't connect to the server for this app or website at this time. …  2024
#>  9 "<BR clear=\"all\">"                                                     2024
#> 10 "If you provide content to customers through CloudFront, you can find …  2024
#> 11 "<BR clear=\"all\">"                                                     2024
#> 12 "<HR noshade size=\"1px\">"                                              2024
#> 13 "<PRE>"                                                                  2024
#> 14 "Generated by cloudfront (CloudFront)"                                   2024
#> 15 "Request ID: hnBmLK3BV8cO-4WDE2n8nAV8o1b_u8G_j7qGPrPF7_Q7XZ1kfTrkIg=="   2024
#> 16 "</PRE>"                                                                 2024
#> 17 "<ADDRESS>"                                                              2024
#> 18 "</ADDRESS>"                                                             2024
#> 19 "</BODY></HTML>"                                                         2024
#> # ℹ abbreviated name:
#> #   ¹​doctype_html_public_w3c_dtd_html_4_01_transitional_en_http_www_w3_org_tr_html4_loose_dtd
# }