Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

catch invalid roof values in load_schedules() #218

Merged
merged 3 commits into from
Sep 11, 2023
Merged

Conversation

mrcaseb
Copy link
Member

@mrcaseb mrcaseb commented Sep 11, 2023

nflfastR and nfl4th use the "roof" variable in several models
These models expect one of c("indoors", "closed", "outdoors", "open", "retractable") or NA
We ran into problems where roof was empty or something else several times
So we catch these cases here and change invalid data to NA

@mrcaseb mrcaseb requested a review from tanho63 September 11, 2023 09:28
@mrcaseb mrcaseb enabled auto-merge (squash) September 11, 2023 09:40
@guga31bb
Copy link
Member

perfect ty!

Copy link
Member

@tanho63 tanho63 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mrcaseb mrcaseb merged commit 44524a2 into main Sep 11, 2023
7 checks passed
@mrcaseb mrcaseb deleted the catch-bad-roof-values branch September 11, 2023 12:47
@mrcaseb mrcaseb mentioned this pull request Oct 4, 2023
mrcaseb added a commit that referenced this pull request Oct 4, 2023
In #218 I added a set of valid roof type values. I can't remember why I
put "indoors" in there but it is actually invalid. This PR removes that
value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants