darwin-eu / omopgenerics

https://darwin-eu.github.io/omopgenerics/
Apache License 2.0
2 stars 1 forks source link

bind summarise results not working when there are NULL elements in a list #414

Closed nmercadeb closed 3 months ago

nmercadeb commented 3 months ago

Should this work? At the moment it doesn't

output <- list(NULL, omopgenerics::emptySummarisedResult())
omopgenerics::bind(output)
catalamarti commented 3 months ago
x <- list(omopgenerics::emptySummarisedResult(), NULL)
x <- x[[!is.null(x)]]
list(x) |>
  omopgenerics::bind()