Skip to content

Commit

Permalink
updating ids and internals
Browse files Browse the repository at this point in the history
  • Loading branch information
atungate committed Dec 5, 2024
1 parent 69d2976 commit b66593d
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 5 deletions.
Binary file modified R/sysdata.rda
Binary file not shown.
18 changes: 17 additions & 1 deletion data-raw/player_directories2.R
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ dim(ffanalytics:::player_ids)
dim(curr_ids)


curr_ids[curr_ids$id %in% curr_ids$id[duplicated(curr_ids$id)], ] |> View()
curr_ids[curr_ids$id %in% curr_ids$id[duplicated(curr_ids$id)], ]



Expand All @@ -251,6 +251,22 @@ colSums(!is.na(curr_ids)) - colSums(!is.na(ffanalytics:::player_ids))
sum(duplicated(curr_ids$id))
sum(duplicated(ffanalytics:::player_ids))


# Updating specific ID with an issue




# Adding gsis-id and sleeper (will add more robust sleeper pull directly to their
# API)
nflr_ids = nflreadr::load_ff_playerids() %>%
select(mfl_id, gsis_id, sleeper_id)

curr_ids = curr_ids %>%
left_join(nflr_ids, c("id" = "mfl_id"))


# Writing temp file
temp_file = tempfile(fileext = ".rds")
print(temp_file)
saveRDS(curr_ids, temp_file)
Expand Down
8 changes: 4 additions & 4 deletions man/custom_scoring.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions man/default_weights_by_src.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b66593d

Please sign in to comment.