I have a matrix A:
> A
[,1] [,2] [,3]
[1,] 1 2 3
[2,] 4 5 6
[3,] 7 8 9
[4,] 1 2 3
[5,] 4 5 6
[6,] 7 8 9
and a matrix B:
> B
[,1] [,2] [,3]
[1,] 1 2 3
[2,] 4 5 6
I want to delete the rows in matrix A, which appear in B. And the result should be:
> C
[,1] [,2] [,3]
[1,] 7 8 9
[2,] 7 8 9
Thanks a lot!