From efd6af720dbb8bdd9157bf8235ef02663c112b92 Mon Sep 17 00:00:00 2001 From: patstout Date: Fri, 11 Oct 2024 09:46:04 -0500 Subject: [PATCH] stripping 'highlow' off of the team name --- R/fp_projections.R | 2 ++ 1 file changed, 2 insertions(+) diff --git a/R/fp_projections.R b/R/fp_projections.R index 3f8bdb6..81a6349 100644 --- a/R/fp_projections.R +++ b/R/fp_projections.R @@ -80,6 +80,8 @@ fp_projections_parse.fp_nfl <- function(response){ team = rvest::html_text(player_labels) %>% tail(-1) ) %>% dplyr::mutate( + #The 'highlow' string may appear in the 'team' text when max and min requested + team = stringr::str_remove(team, "highlow$"), team = purrr::map2(.data$player_name, .data$team, ~stringr::str_remove_all(.y,.x) %>%