[R] Test for column equality across matrices

Thiem Alrik thiem at sipo.gess.ethz.ch
Sat Jul 13 15:45:05 CEST 2013


Dear list,

I have two matrices

A <- matrix(t(expand.grid(c(1,2,3,4,5), 15, 16)), nrow = 3)
B <- combn(16, 3)

Now I would like to exclude all columns from the 560 columns in B which are identical to any 1 of the 6 columns in A. How could I do this?

Many thanks and best wishes,

Alrik



More information about the R-help mailing list