-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
simplify module and fix LOQFL_COMB #283
Conversation
CLA Assistant Lite bot ✅ All contributors have signed the CLA |
Thanks, @gogonzo! This solution is simplified version and works well. I also tested it on the theory app. |
I have read the CLA Document and I hereby sign the CLA |
Code Coverage Summary
Diff against main
Results for commit: 788ef81 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
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.
LGTM
TRUE ~ as.character(NA) | ||
)) | ||
|
||
ANL_TRANSPOSED <- merge(ANL_TRANSPOSED1, ANL_TRANSPOSED2) # nolint |
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.
Hey @gogonzo I think the replacement of merge
with dplyr::full_join
caused the issues mentioned in Theory app related to an unexpected 3rd footnote that produces messages about some values being NAs.
Check this out
> x <- data.frame(
+ code = c('a', 'b'),
+ value = c('val1', 'val2')
+ )
>
> y <- data.frame(
+ code = c('a'),
+ value = 'val3'
+ )
>
> dplyr::full_join(
+ x,
+ y,
+ by = 'code'
+ )
code value.x value.y
1 a val1 val3
2 b val2 <NA>
>
> merge(x, y, by = 'code')
code value.x value.y
1 a val1 val3
dplyr::full_join
results with more rows (where some observations are NAs) where merge
deletes/filters those.
I think we should get back to merge
to solve unexpected 3rd footnote mentioned in Theory app.
alternative to #280
Simplified the code by replacing pivot_ calls with simple filter and select.