Open mikemc opened 3 years ago
Here is a minimal reproducible example of the bug
group <- c(1,1,2,2,3,3)
dates <- c(NA, NA, "2020-01-01", "2020-01-01", "2020-01-02", "2020-01-03") %>%
lubridate::as_date()
speedyseq:::merge_groups(
dates,
group,
unique_or_na
)
#> Error: Can't combine `1` <date> and `3` <double>.
#> Run `rlang::last_error()` to see where the error occurred.
Strangely, this only seems to create an error in merge_samples2()
when group
is a vector rather than the name of a column in the sample data
The error is occurring in the call to
merge_groups()
and the error suggests it has to do with the date columns