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 info from outlier reason 2 and clean up graphs #69

Conversation

wagnerlmichael
Copy link
Member

This PR adds more outlier information and makes a number of small improvements.

@wagnerlmichael wagnerlmichael marked this pull request as ready for review December 17, 2024 17:38
Comment on lines 23 to 31
mutate(
outlier_reasons_to_graph = if_else(
sv_is_outlier,
paste0(sv_outlier_reason1, " (", sv_outlier_reason2, ")"),
NA_character_
)
) %>%
# Yank NA string values to make output cleaner
mutate(outlier_reasons_to_graph = str_remove_all(outlier_reasons_to_graph, " \\(NA\\)"))
Copy link
Member

Choose a reason for hiding this comment

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

suggestion (blocking): Use a case_when() here. Creating a string and then manipulating it is fragile and error-prone.

Comment on lines 268 to 269
arrange(desc(percent)) %>%
Matrix::head(1) %>%
Copy link
Member

Choose a reason for hiding this comment

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

suggestion (blocking): Replace this with slice_max().

Copy link
Member

@dfsnow dfsnow left a comment

Choose a reason for hiding this comment

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

Nice! We love to see it.

@dfsnow dfsnow merged commit 7568264 into 2025-assessment-year Dec 17, 2024
4 checks passed
@dfsnow dfsnow deleted the add-sv-outlier-reason-2-to-outlier-performance-report branch December 17, 2024 20:40
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.

2 participants