-
-
Notifications
You must be signed in to change notification settings - Fork 1
Add LBT15 to chevron catalog
#793
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
base: main
Are you sure you want to change the base?
Conversation
|
✅ All contributors have signed the CLA |
|
I have read the CLA Document and I hereby sign the CLA |
BFalquet
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good start, thank you
vignettes/chevron_catalog.rmd
Outdated
| mutate( | ||
| BTOXGRH = as.factor( | ||
| case_when( | ||
| BTOXGR %in% c("-4", "-3", "-2", "-1", "0") ~ "0", | ||
| TRUE ~ BTOXGR | ||
| ) | ||
| ), | ||
| ATOXGRH = as.factor( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, but I think you could make use of dunlin::reformat that case:
rr <- rule("0" = c("-4", "-3", "-2", "-1", "0"))
...
mutate(y = reformat(.data$x, rr))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much @BFalquet for the tip! Great advice. I've implemented it in my latest commit. Please let me know if there's anything further I can improve. Thanks!
closes #792