How to perform different repeated statistical analysis of each column with a loop in R?
Hello, I am new in R for advanced applications and need a help for repeating calculations. I have some codes and I have some data of A,B,C,D. I am performing 4 different statistical analysis. All letter consists if 5 values in each column. For instance, A is (1:5,1), B is (6:10,1), C is (11:15,1) and D is (16:17,1). The statistical methods below works perfectly but I have 60 columns and need 4 different result of those 60 columns. To perform this, the only way I know is changing the column number (ie, A(1:5, 2) , B(1:5, 2), C(1:5, 2), D(1:5,2)) of A, B,C ,D until I get 60th column. However, this very time consuming and difficult. Is there any way to perform this analysis using the same test methods and setups, written in the code, by using loop or lapply? Thank you.
Ps. Please consider that, the codes of wilcox and mann whitney codes must stay same since it is working for my case and give result of what is expected.