Skip to content

Conversation

@zhux63
Copy link
Contributor

@zhux63 zhux63 commented Oct 25, 2024

closes #792

@github-actions
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

3 participants