Skip to content

Commit

Permalink
#29 replace any NULL vals in list-col with NA
Browse files Browse the repository at this point in the history
- was causing problems for `map_if()` predicate check expressions in `make_viz()`
  • Loading branch information
egouldo committed Jul 31, 2024
1 parent aac5c51 commit 75cdaa8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions R/meta_analyse_datasets.R
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,12 @@ meta_analyse_datasets <- function(MA_data, filter_vars = NULL){
select(-ends_with("_colname"))
}

out <-
out %>% #replace any NULL values with NA
mutate(across(everything(),
.fns = ~ coalesce(.x, list(NA)))
)

return(out)

}

1 comment on commit 75cdaa8

@egouldo
Copy link
Owner Author

Choose a reason for hiding this comment

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

#63

Please sign in to comment.