rstatix icon indicating copy to clipboard operation
rstatix copied to clipboard

Problem with `mutate()` input `data`. x n < m ℹ Input `data` is `map(.data$data, .f, ...)`.

Open showteeth opened this issue 3 years ago • 3 comments

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?

showteeth avatar Mar 05 '22 07:03 showteeth

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

MonicaCalSan avatar Mar 17 '22 21:03 MonicaCalSan

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

Dallak avatar Apr 02 '22 06:04 Dallak

+1 but with the function "wilcox_test".

frequena avatar Apr 11 '22 14:04 frequena