I just wasted a whole day searching for a solution for my problem.
So briefly, I have 2 datasets with 2 samples each from a wilcox_test. Now, I wanted to test for effect size. For the first dataset I receive an effect size "r", for the other I receive a error message:
library(rcompanion) wilcoxonPairedR(x = sport_1_4$value, g = sport_1_4$variable) Fehler in wilcoxonZ(x = x[as.numeric(g) == 1], y = x[as.numeric(g) == 2], : 'x' and 'y' must have the same length