[R] combine two columns

Georg Otto georg.otto at tuebingen.mpg.de
Mon Nov 28 18:47:38 CET 2005


Hi,

I have an R programming problem and I havent found anything in the
documentation yet:

I have a data matrix, in which two neighbouring columns represent
replicates of the same experiment, e.g. something like this:

       A A B B C C
row1   1 1 1 2 2 2
row2   1 1 1 1 1 2

I would like to test, if the values for the two replicates in a row
are the same or if they differ and generate a new matrix with the
results of the tests, something like this:

        A B C
row1    T F T
row2    T T F

Any hint will be appreciated!

Georg




More information about the R-help mailing list