[R] set difference between two data frames

Yasin Gocgun entropy053 at gmail.com
Thu Oct 31 21:41:51 CET 2013


Thanks. Actually, I forgot to add that both have the same number of columns.

On Thu, Oct 31, 2013 at 4:07 PM, Bert Gunter <gunter.berton at gene.com> wrote:
> lapply() setdiff() by columns.
>
> Unless you have failed to tell us something, you almost certainly will
> not get a data frame (same number of rows/column) as your answer.
>
> -- Bert
>
> On Thu, Oct 31, 2013 at 12:58 PM, Yasin Gocgun <entropy053 at gmail.com> wrote:
>> Hi,
>>
>> I have two data frames, say, x and y, where y is a subset of x. How
>> can I find the set difference of these two data frames (i.e., x-y)?
>>
>> Thanks,
>>
>> --
>> Yasin Gocgun
>>
>> ______________________________________________
>> 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.
>
>
>
> --
>
> Bert Gunter
> Genentech Nonclinical Biostatistics
>
> (650) 467-7374



-- 
Yasin Gocgun



More information about the R-help mailing list