Skip to content

Commit

Permalink
stripping 'highlow' off of the team name
Browse files Browse the repository at this point in the history
  • Loading branch information
patstout committed Oct 11, 2024
1 parent fde9743 commit efd6af7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/fp_projections.R
Original file line number Diff line number Diff line change
Expand Up @@ -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) %>%
Expand Down

0 comments on commit efd6af7

Please sign in to comment.