-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add info from outlier reason 2 and clean up graphs #69
Conversation
reports/performance/_outliers.qmd
Outdated
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\\)")) |
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.
suggestion (blocking): Use a case_when()
here. Creating a string and then manipulating it is fragile and error-prone.
reports/performance/_outliers.qmd
Outdated
arrange(desc(percent)) %>% | ||
Matrix::head(1) %>% |
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.
suggestion (blocking): Replace this with slice_max()
.
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! We love to see it.
This PR adds more outlier information and makes a number of small improvements.