Re: [R] Extract subset of rows

2010-12-17 Thread Steve Lianoglou
Hi, On Fri, Dec 17, 2010 at 10:22 AM, John Haart wrote: > Hi all, > > Sorry i forgot to mention there a species present in one matrix not in the > other hence the problem i.e matrix 1 may have species E which isnt present in > matrix 2 and matrix 2 may have species F not present in matrix 1. >

Re: [R] Extract subset of rows

2010-12-17 Thread jthetzel
Hi John, I'd recommend looking into ?merge. Jeremy Jeremy T. Hetzel Boston University -- View this message in context: http://r.789695.n4.nabble.com/Extract-subset-of-rows-tp3092669p3092700.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] Extract subset of rows

2010-12-17 Thread Steve Lianoglou
Hi, On Fri, Dec 17, 2010 at 10:19 AM, John Haart wrote: > Hi, > > I have two matrices with a common field = species what i want to do is make a > matrix that combines the data held in the other two based on the species name. Look at the merge function: ?merge -steve -- Steve Lianoglou Gradua

Re: [R] Extract subset of rows

2010-12-17 Thread John Haart
Hi all, Sorry i forgot to mention there a species present in one matrix not in the other hence the problem i.e matrix 1 may have species E which isnt present in matrix 2 and matrix 2 may have species F not present in matrix 1. Sorry for the lack of clarification in the original post! John On 1

[R] Extract subset of rows

2010-12-17 Thread John Haart
Hi, I have two matrices with a common field = species what i want to do is make a matrix that combines the data held in the other two based on the species name. I.e ( simple example) Matrix 1 - monocot SPECIES V1 A 2 B 3 C 4