Repository navigation
Updating to fix some errors presented in #59 - #60
Merged
Merged
Conversation
Member
|
I think you mixed up 16723 vs 16273 on the YounBy01 issue, I see three of them now |
Contributor
Author
|
No, it creates an extra version of 16723 because I tried to use missing_ids.json as an override. The pipeline to link pfr id will need to be modified to fix the Byron Young Error. I just submitted a change reverting that change so we can fix the others for now. |
Contributor
Author
|
Oh my bad, I just reread what you said. All of these numbers and I read it wrong. Making the correct fix now. |
tanho63
reviewed
Sep 11, 2024
tanho63
left a comment
Member
There was a problem hiding this comment.
michael carter CB is 33542
tanho63
reviewed
Sep 11, 2024
Member
|
Fixed Michael Carter yahoo id and also a stray comma preventing it from being parsed as JSON. Thanks for the assist! x <- jsonlite::fromJSON("https://raw.githubusercontent.com/dynastyprocess/data/6dba1fd6f387cf620ea40bb9455cebe4b505544e/files/missing_ids.json")
y <- purrr::map_df(
names(x),
\(n) {
x |>
dplyr::filter(!is.na(.data[[n]])) |>
dplyr::mutate(dupe_id = .data[[n]], dupe_id_type = n) |>
dplyr::select(mfl_id, dupe_id, dupe_id_type) |>
janitor::get_dupes(dupe_id, dupe_id_type) |>
dplyr::mutate_all(as.character) |>
dplyr::left_join(
nflreadr::load_ff_playerids() |>
dplyr::select(name, mfl_id) |>
dplyr::mutate_all(as.character)
) |>
dplyr::select(
mfl_id, dupe_id, dupe_id_type
)
}
) |
tanho63
added a commit
that referenced
this pull request
Sep 17, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Based on these duplicated results:
ID 8058 should not be Fred Taylor, it should be Chris Roberson a DB based on NFL draft round and position. I cannot however find him in MFL ids, including those from 2005, and from 2008 when he recorded a stat according to pro-football-reference.
The duplicate GSIS-ID and pff-id was removed for 8058, but the wrong name/mismatched mfl id still persist.
Same thing with ID 4722, based on the draft info it should be Roman Fortin, but I cannot find him in MFL reference.
1286 doesn't correspond at all. The round, position, and school don't correspond properly for the 1985 draft like the previous two did. I also removed the GSIS-ID and pff-id references since they are obviously not correct.
For ids 15258 and 15432, there are two Michael Carters, one a CB on the jets, and the other a RB on the Cardinals. Presumably they have two different yahoo ids. I don't know how to get the player list from yahoo, but that would need to be resolved to solve this issue.
The PFR id for 16723 should be YounBy00, not YounBy01. This error is not originating from this missing_ids.json file. I have added it with the intention that it force updates it to be correct, but that may not be the case.