Closed LukasWallrich closed 1 month ago
Relatedly, NA values in cond lead to unclear errors - na.rm should be offered, and clear failure produced if FALSE.
> iris$Species[30] <- NA
> iris %>% timesaveR::pairwise_t_tests(Sepal.Length, Species)
Error in `map()`:
ℹ In index: 1.
ℹ With name: 1.
Caused by error in `t.test.formula()`:
! grouping factor must have exactly 2 levels
Run `rlang::last_trace()` to see where the error occurred.
dbl+lbl
data also leads to unclear error - convert to factor or clearer error:
Error in `map()`:
ℹ In index: 1.
ℹ With name: 1.
Caused by error in `dplyr::arrange()`:
ℹ In argument: `..1 = cond == x[1]`.
Caused by error in `vec_equal()`:
! Can't combine `..1` <character> and `..2` <double>.
Run `rlang::last_trace()` to see where the error occurred.
This is not clear
Created on 2024-05-17 with reprex v2.0.2