Skip to content

Commit

Permalink
critical update to fix name matching issue
Browse files Browse the repository at this point in the history
  • Loading branch information
andreweatherman authored Aug 21, 2024
1 parent b99c3f8 commit 81a06ef
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions R/cache.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,11 @@ build_team_name_matches <- function() {

data <- cbbplotR:::parquet_from_url('https://www.cbbdata.com/api/data/teams?')

data <- dplyr::select(data, -c(long, lat, logo, color, alt_color, wordmark,
espn_logo, espn_dark_logo))
data <- dplyr::select(data, -c(arena_lon,
arena_lat, espn_logo, espn_dark_logo, logo, wordmark,
color, alt_color, primary_arena, capacity, arena_elevation,
arena_elevation_rank))

data <- tidyr::pivot_longer(data, -common_team)

cbb_matches <- dplyr::pull(data, 'common_team')
Expand Down

0 comments on commit 81a06ef

Please sign in to comment.