?merge
> merge(A,B)
C1 C2
1 A 200
On Thu, May 7, 2009 at 2:19 AM, Raghavan, Nandini [PRDUS] <
nragh...@its.jnj.com> wrote:
> Hello,
>
>
>
> I am trying to extract a subset of a dataframe A (2 columns) by
> extracting all entries in A (several repeated entries) that match
> dataframe B in bo
> A[with(A, paste(C1, C2, sep = "\r")) %in% with(B, paste(C1, C2, sep="\r")), ]
C1 C2
19 A 200
(Using sep = "\r" is perhaps a little too cautious.)
Bill Venables
http://www.cmis.csiro.au/bill.venables/
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@
2 matches
Mail list logo