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

Fix #686 - LB_Map_Raw() counts refactor #687

Merged
merged 2 commits into from
Aug 16, 2022
Merged

Fix #686 - LB_Map_Raw() counts refactor #687

merged 2 commits into from
Aug 16, 2022

Conversation

mattroumaya
Copy link
Contributor

Overview

Fix #686
Replaces if_else() with case_when() to account for weirdness when NA values. NA values are introduced when filtering on domain data and joining to subject-level data.

Test Notes/Sample Code

Test that counts only contain 0 or 1:

# filter so join is missing some participants
lb <- clindata::rawplus_lb %>% filter(LB_GRADE %in% c(3, 4))

LB_Map_Raw(dfs = list(dfSUBJ = clindata::rawplus_subj, dfLB = lb))

@mattroumaya mattroumaya changed the title LB_Map_Raw() counts refactor Fix #686 - LB_Map_Raw() counts refactor Aug 15, 2022
@mattroumaya mattroumaya self-assigned this Aug 15, 2022
@mattroumaya mattroumaya merged commit f93448f into dev Aug 16, 2022
@mattroumaya mattroumaya deleted the fix-686 branch August 16, 2022 16:01
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.

Bugfix: LB_Map_Raw() returns NA Count when missing Abnormal value
2 participants