I am currently trying to implement the Wilcoxon Ranksum test on multiple data sets that I've combined into one large matrix, A, that is 705x17635 (ie I want to run the ranksum test 17,635 times. The only way I've seen how to do this without using for loops is lapply, which I've run as:
> lapply(data.frame(A), function(x)
wilcox.test(x,b,alternative="greater",exact=FALSE,correct=FALSE))
where b is our negative control data and is a 20000x1 vector. Running this, however, takes very long (I gave up after 30 minutes), and I'm wondering if there's a quicker way to run this, especially since I can do the same process in MATLAB (even with a forloop) in about five minutes, but I need to use R for various reasons.