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

From: cruz <cruadam_at_gmail.com>
Date: Sat, 08 Nov 2008 12:11:25 +0800

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_ <mentor__at_gmx.net> 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_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 Sat 08 Nov 2008 - 04:16:57 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:24 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