rstatix
rstatix copied to clipboard
Problem with `mutate()` input `data`. x n < m ℹ Input `data` is `map(.data$data, .f, ...)`.
When I ran t_test on my own data, I got this error:
# command
df %>%
dplyr::group_by("Group") %>%
rstatix::t_test(Frac~Type,p.adjust.method="BH")
# error info
Problem with `mutate()` input `data`.
x n < m
ℹ Input `data` is `map(.data$data, .f, ...)`.
Why did this happen?
I have the same problem, in my case I'm using anova_test instead of t_test, but I get the same error.
y2<-y %>% group_by(Group)
one.way <-anova_test2(data=y2, dv = Cpd2, wid = Patient, within = Disease)
This is the error that appeared in my case:
Error: Problem with `mutate()` column `data`.
i `data = map(.data$data, .f, ...)`.
x 0 (non-NA) cases
I also encountered the same issue when running:
cohens_d(m.y ~ m.x, data = dat)
Error in `mutate()`:
! Problem while computing `data = map(.data$data, .f, ...)`.
Caused by error in `utils::combn()`:
! n < m
+1 but with the function "wilcox_test".