[R] Re move specific rows from a matrix

2008-11-07 Thread mentor_

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@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.


Re: [R] Re move specific rows from a matrix

2008-11-07 Thread cruz
use the trick from this thread:

https://stat.ethz.ch/pipermail/r-help/2008-November/178985.html

your problem shall be fixed


On Fri, Nov 7, 2008 at 8:21 PM, mentor_ [EMAIL PROTECTED] wrote:

 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!

__
R-help@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.