I am writing a script for my mass spectrometric data.
I have the data in a Matrix named M1
. Every sample is in his own column.
Sample of M1:
S1 S2 S3
1 100 200 500
2 200 300 500
3 100 200 500
Now when I place de data in the matrix I can compare the columns by M1$S1==M1$S2
. and same for other samples.
How do I make this code run automatically all the samples?
So that it compares 1 with 2 and 1 with 3 and computes further?
Maybe if it is possible is there a way to not get a true and false list but just the false samples?