Skip to content

Commit

Permalink
use nflreadr::clean_names()
Browse files Browse the repository at this point in the history
  • Loading branch information
tanho63 committed Aug 24, 2023
1 parent 758a87d commit 071d368
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions data-raw/fp_rankings_history.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fp_rankings_history <- crossing(pages, seasons) %>%
season = seasons,
fantasypros_id = as.character(fantasypros_id),
sportradar_id,
player_name = dp_cleannames(player_name),
player_name = nflreadr::clean_player_names(player_name),
pos = case_when(
pos %in% c("CB", "S") ~ "DB",
pos %in% c("OLB", "LB") ~ "LB",
Expand Down Expand Up @@ -64,7 +64,7 @@ fp_rankings_history2 <- crossing(pages2, seasons2) %>%
season = seasons2,
fantasypros_id = as.character(fantasypros_id),
sportradar_id,
player_name = dp_cleannames(player_name),
player_name = nflreadr::clean_player_names(player_name),
pos,
team,
rank,
Expand Down
4 changes: 2 additions & 2 deletions data-raw/weekly_rankings_history.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ fp_rankings_history <- crossing(pages, seasons, weeks) %>%
week = weeks,
fantasypros_id = as.character(fantasypros_id),
sportradar_id,
player_name = dp_cleannames(player_name),
player_name = nflreadr::clean_player_names(player_name),
pos = case_when(
pos %in% c("CB", "S") ~ "DB",
pos %in% c("OLB", "LB") ~ "LB",
Expand Down Expand Up @@ -83,7 +83,7 @@ fp_rankings_history2 <- crossing(pages2, seasons2, weeks) %>%
week = weeks,
fantasypros_id = as.character(fantasypros_id),
sportradar_id,
player_name = dp_cleannames(player_name),
player_name = nflreadr::clean_player_names(player_name),
pos,
team,
rank,
Expand Down

0 comments on commit 071d368

Please sign in to comment.