[R] Re move specific rows from a matrix

From: mentor_ <mentor__at_gmx.net>
Date: Fri, 07 Nov 2008 04:21:38 -0800 (PST)

Hi,

imagine the following two matrix:
Matrix A:
a b c
1 2 3
4 5 6
7 8 9

Matrix B:
a
4
7

I would like to remove those rows from matrix A which are present in both matrices.
So after removing the corresponding rows the matrix A should look like this: Matrix A:
a b c
1 2 3

Thanks in advance!

-- 
View this message in context: http://www.nabble.com/Remove-specific-rows-from-a-matrix-tp20379566p20379566.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Fri 07 Nov 2008 - 13:48:34 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 08 Nov 2008 - 04:30:23 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive