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

simplify module and fix LOQFL_COMB #283

Merged
merged 6 commits into from
Jun 27, 2024
Merged

simplify module and fix LOQFL_COMB #283

merged 6 commits into from
Jun 27, 2024

Conversation

gogonzo
Copy link
Contributor

@gogonzo gogonzo commented Jun 25, 2024

alternative to #280

Simplified the code by replacing pivot_ calls with simple filter and select.

Copy link
Contributor

github-actions bot commented Jun 25, 2024

CLA Assistant Lite bot ✅ All contributors have signed the CLA

@kartikeyakirar
Copy link
Contributor

Thanks, @gogonzo! This solution is simplified version and works well. I also tested it on the theory app.

@gogonzo gogonzo marked this pull request as ready for review June 26, 2024 16:46
@gogonzo
Copy link
Contributor Author

gogonzo commented Jun 26, 2024

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

Copy link
Contributor

github-actions bot commented Jun 26, 2024

badge

Code Coverage Summary

Filename                                 Stmts    Miss  Cover    Missing
-------------------------------------  -------  ------  -------  ---------
R/tm_g_gh_boxplot.R                        353     353  0.00%    175-595
R/tm_g_gh_correlationplot.R                556     556  0.00%    227-892
R/tm_g_gh_density_distribution_plot.R      279     279  0.00%    135-464
R/tm_g_gh_lineplot.R                       566     566  0.00%    161-821
R/tm_g_gh_scatterplot.R                    246     246  0.00%    144-442
R/tm_g_gh_spaghettiplot.R                  316     316  0.00%    194-591
R/toggleable_slider.R                      155     155  0.00%    72-244
R/utils-arbitrary_lines.r                  126     126  0.00%    19-176
R/utils-data_constraints.r                 190     190  0.00%    2-257
R/utils-keep_range_slider_updated.r         23      23  0.00%    8-38
R/utils-maptrt.r                             9       9  0.00%    24-36
R/utils-templ_ui.r                          48      48  0.00%    2-73
R/utils.R                                   42      42  0.00%    12-99
R/zzz.R                                      2       2  0.00%    2-3
TOTAL                                     2911    2911  0.00%

Diff against main

Filename                       Stmts    Miss  Cover
---------------------------  -------  ------  --------
R/tm_g_gh_correlationplot.R       -8      -8  +100.00%
TOTAL                             -8      -8  +100.00%

Results for commit: 788ef81

Minimum allowed coverage is 80%

♻️ This comment has been updated with latest results

Copy link
Contributor

@kartikeyakirar kartikeyakirar left a comment

Choose a reason for hiding this comment

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

LGTM

@gogonzo gogonzo enabled auto-merge (squash) June 27, 2024 13:52
@gogonzo gogonzo merged commit 66600b7 into main Jun 27, 2024
28 checks passed
@gogonzo gogonzo deleted the loqfl_comb@main branch June 27, 2024 13:52
@github-actions github-actions bot locked and limited conversation to collaborators Jun 27, 2024
TRUE ~ as.character(NA)
))

ANL_TRANSPOSED <- merge(ANL_TRANSPOSED1, ANL_TRANSPOSED2) # nolint
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants