Re: [R] extract the data that match

2010-02-16 Thread Sharpie
Roslina Zakaria wrote: > > Hi r-users, >   > I would like to extract the data that match. > I'm interested in matchind the value in column 'intg' with value in column > 'rand_no' > Match how? Rows where intg equals rand_no at the same position? The rows of intg that are present somewhere in r

Re: [R] extract the data that match

2010-02-16 Thread Peter Alspach
. Peter Alspach > -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Roslina Zakaria > Sent: Wednesday, 17 February 2010 3:39 p.m. > To: r-help@r-project.org > Subject: [R] extract the data that match >

[R] extract the data that match

2010-02-16 Thread Roslina Zakaria
Hi r-users,   I would like to extract the data that match.  Attached is my data: I'm interested in matchind the value in column 'intg' with value in column 'rand_no' > cbind(z=z,intg=dd,rand_no = rr)     z  intg rand_no    [1,]  0.00 0.000   0.001    [2,]  0.01 0.000   0.002    [3,]  0.02