From 35150072483d5a901fa6348a889bf82100349e76 Mon Sep 17 00:00:00 2001 From: Tan Ho <38083823+tanho63@users.noreply.github.com> Date: Wed, 18 Sep 2024 14:37:15 -0400 Subject: [PATCH] rm sportradar id from rankings --- DESCRIPTION | 2 +- NEWS.md | 1 + R/2_rankings.R | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 3ee3a38..f2b70aa 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: ffsimulator Title: Simulate Fantasy Football Seasons -Version: 1.2.3.01 +Version: 1.2.3.02 Authors@R: person(given = "Tan", family = "Ho", diff --git a/NEWS.md b/NEWS.md index a4baab4..7633c71 100644 --- a/NEWS.md +++ b/NEWS.md @@ -5,6 +5,7 @@ - Update available fantasypros rankings to include 2022 - Require ggplot2 3.4.0 for plotting features - Draws from a slightly broader sample of players for season outcomes +- Fix weekly sims - fantasypros no longer returns sportradar ids (fixes #71) --- diff --git a/R/2_rankings.R b/R/2_rankings.R index 6f4c674..61f626a 100644 --- a/R/2_rankings.R +++ b/R/2_rankings.R @@ -35,12 +35,12 @@ ffs_latest_rankings <- function(type = c("draft","week")) { "bye", "ecr", "sd", - "sportradar_id" = "sportsdata_id", + # "sportradar_id" = "sportsdata_id", "scrape_date")] names(fp_cleaned)[2] <- "fantasypros_id" names(fp_cleaned)[4] <- "team" - names(fp_cleaned)[8] <- "sportradar_id" + # names(fp_cleaned)[8] <- "sportradar_id" if(all(is.na(fp_cleaned$bye))) fp_cleaned$bye <- 0 @@ -56,7 +56,7 @@ ffs_latest_rankings <- function(type = c("draft","week")) { "team", "ecr", "sd", - "sportradar_id", + #"sportradar_id", "scrape_date")] names(fp_cleaned)[1] <- "player"