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

Add LBT15 to chevron catalog #793

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

Add LBT15 to chevron catalog #793

wants to merge 6 commits into from

Conversation

zhux63
Copy link
Contributor

@zhux63 zhux63 commented Oct 25, 2024

closes #792

Copy link
Contributor

github-actions bot commented Oct 25, 2024

✅ All contributors have signed the CLA
Posted by the CLA Assistant Lite bot.

@zhux63
Copy link
Contributor Author

zhux63 commented Oct 25, 2024

I have read the CLA Document and I hereby sign the CLA

Copy link
Contributor

@BFalquet BFalquet left a 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

Comment on lines 810 to 817
mutate(
BTOXGRH = as.factor(
case_when(
BTOXGR %in% c("-4", "-3", "-2", "-1", "0") ~ "0",
TRUE ~ BTOXGR
)
),
ATOXGRH = as.factor(
Copy link
Contributor

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))

Copy link
Contributor Author

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!

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.

Add lbt15 template to chevron catalog
2 participants