I'm new using R, I'm just starting with the outliers package. Probably this is very easy, but could anybody tell me how to run several Grubbs tests at the same time? I have 20 columns and I want to test all of them simultaneously. Thanks in advance
Edit: Sorry for not explaining well. I'll try. I started using R today and I learned how to make Grubbs test using grubbs.test(data$S1, type=10 or 11 or 20) and it goes well. But I have a table with 20 columns, and I want to run Grubbs test for each of them simultaneously. I can do it one by one, but I think there must be a way to do it faster. I ran the code at How to repeat the Grubbs test and flag the outliers as well, and works perfectly, but again, I would like to do it with my 20 samples. As an example of my data:
S1    S2  S3  S4  S5  S6  S7
96  40  99  45  12  16  48
52  49  11  49  59  77  64
18  43  11  67  6   97  91
79  19  39  28  45  44  99
9   78  88  6   25  43  78
60  12  29  32  2   68  25
18  61  60  30  26  51  70
96  98  55  74  83  17  69
19  0   17  24  0   75  45
42  70  71  7   61  82  100
39  80  71  58  6   100 94
100 5   41  18  33  98  97
Hope this helps.
 
     
    