From aaeee05a9532e9048224b9215a169e5a9d109f41 Mon Sep 17 00:00:00 2001 From: andreweatherman <63006926+andreweatherman@users.noreply.github.com> Date: Thu, 8 Feb 2024 16:41:05 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20andrewea?= =?UTF-8?q?therman/cbbdata@c08623a3e42892db30a62e093c15d79f4172050c=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 88 +++++++----------- pkgdown.yml | 2 +- reference/cbd_torvik_resume_database.html | 16 ++-- reference/cbd_torvik_team_history.html | 2 +- .../figures/README-unnamed-chunk-5-1.png | Bin 35122 -> 41475 bytes .../figures/README-unnamed-chunk-6-1.png | Bin 17338 -> 17306 bytes search.json | 2 +- 7 files changed, 44 insertions(+), 66 deletions(-) diff --git a/index.html b/index.html index 0b361ed..c80ff91 100644 --- a/index.html +++ b/index.html @@ -150,19 +150,20 @@

Metric Ratings:cbbdata::cbd_torvik_team_factors(year = 2024, no_bias = TRUE) %>% dplyr::slice(1:10) %>% dplyr::select(team, barthag, adj_o, adj_d) +#> API Key set! #> # A tibble: 10 × 4 #> team barthag adj_o adj_d #> <chr> <dbl> <dbl> <dbl> -#> 1 Houston 0.983 116. 81.2 -#> 2 Purdue 0.972 124. 91.0 -#> 3 Arizona 0.971 119. 87.7 -#> 4 Connecticut 0.963 125. 93.9 -#> 5 BYU 0.956 118. 90.1 -#> 6 Oklahoma 0.948 114. 88.8 -#> 7 Auburn 0.947 119. 93.0 -#> 8 Iowa St. 0.946 116. 90.1 -#> 9 Alabama 0.940 129. 102. -#> 10 Marquette 0.933 118. 93.8 +#> 1 Houston 0.979 117. 83.9 +#> 2 Purdue 0.974 126. 92.3 +#> 3 Auburn 0.955 120. 91.7 +#> 4 Connecticut 0.955 123. 94.4 +#> 5 Arizona 0.949 120. 92.9 +#> 6 Tennessee 0.944 118. 91.9 +#> 7 Alabama 0.941 126. 98.9 +#> 8 Iowa St. 0.940 115. 90.2 +#> 9 BYU 0.934 120. 95.3 +#> 10 Marquette 0.930 117. 93.1

Player Data: @@ -178,8 +179,9 @@

Player Data:dplyr::filter(games >= 3) %>% dplyr::slice_max(pts, n = 1) %>% dplyr::select(team, player, pts, games) -#> team player pts games -#> 1: Syracuse Judah Mintz 26 5

+#> team player pts games +#> <char> <char> <num> <int> +#> 1: North Carolina RJ Davis 23.66667 6

Team + Conference Data: @@ -198,11 +200,11 @@

Team + Conference Data:#> # A tibble: 5 × 3 #> conf games efg #> <chr> <dbl> <dbl> -#> 1 P12 6 55.5 -#> 2 SEC 13 51.1 -#> 3 BE 14 50.7 -#> 4 ACC 12 50.4 -#> 5 Amer 5 49.5

+#> 1 P12 39 55.3 +#> 2 MWC 36 52.4 +#> 3 B10 64 52 +#> 4 SEC 62 51.1 +#> 5 B12 69 51.1

Game Data: @@ -256,16 +258,20 @@

Tournament Results + Resumesdplyr::mutate(q1_wins = readr::parse_number(quad1)) %>% dplyr::slice_max(q1_wins, n = 5) %>% dplyr::select(team, conf, q1_wins, net) -#> # A tibble: 7 × 4 -#> team conf q1_wins net -#> <chr> <chr> <dbl> <int> -#> 1 Purdue B10 5 3 -#> 2 Houston B12 4 1 -#> 3 Arizona P12 3 2 -#> 4 Kansas B12 3 13 -#> 5 Clemson ACC 3 15 -#> 6 Wisconsin B10 3 17 -#> 7 Texas A&M SEC 3 22

+#> # A tibble: 11 × 4 +#> team conf q1_wins net +#> <chr> <chr> <dbl> <int> +#> 1 Purdue B10 8 2 +#> 2 Connecticut BE 8 3 +#> 3 Houston B12 6 1 +#> 4 Wisconsin B10 6 15 +#> 5 Arizona P12 5 4 +#> 6 Kansas B12 5 12 +#> 7 North Carolina ACC 5 10 +#> 8 Marquette BE 5 11 +#> 9 Baylor B12 5 14 +#> 10 Duke ACC 5 20 +#> 11 Boise St. MWC 5 40
@@ -284,34 +290,6 @@

Metric Ratings:

-
-

Other -

-

cbbdata ships with the gt_theme_athletic theme for gt tables. The theme is perfect for stat-focused tables, giving them a classic, monospaced feel.

-
-cbbdata::cbd_torvik_ratings(year=2024) %>%
-  dplyr::slice(1:5) %>%
-  dplyr::select(team, conf, barthag, adj_o, adj_d) %>%
-  gt::gt() %>%
-  cbbdata::gt_theme_athletic()
-

-

Also included in cbbdata is a helper function for plotting team logos with gt. Simply pass in a dataframe with team names, specify where your ‘team’ logo resides, and the name of the new column (using the same name as your ‘team’ column will replace that column – perfect for gt).

-
-cbbdata::cbd_torvik_ratings(year=2024) %>%
-  dplyr::slice(1:5) %>%
-  dplyr::select(team, conf, barthag, adj_o, adj_d) %>%
-  cbbdata::cbd_gt_logos(team, team) %>%
-  gt::gt() %>%
-  cbbdata::gt_theme_athletic() %>%
-  gt::fmt_markdown(team) %>%
-  gt::cols_align(columns = team, 'left')
-

-
- -
-

Support -

-

The CBBData API is free to use but hosting it is not! If you find this resource helpful, please kindly consider supporting me and the project on Ko-fi.