[R] R intersect()
chalabi.elahe at yahoo.de
chalabi.elahe at yahoo.de
Tue Jun 28 17:04:10 CEST 2016
Yes, found it. Thanks
On Tuesday, June 28, 2016 4:57 PM, Duncan Murdoch <murdoch.duncan at gmail.com> wrote:
On 28/06/2016 10:48 AM, ch.elahe via R-help wrote:
> Hi all,
> I have the following df:
>
>
> licenseY :int 41006 41013 41044 41046 41067 41166 41202 41262 41274 41290
> licenseZ :int 41006 41013 41018 41044 41046 41067 41111 41200 41262 41272
> I needed the common values in both license columns so I used :
>
>
> intersect(df$licenseY,df$licenseZ)
> now I want a command to return me values from licenseY that are not in intersect(). Does anyone know how should I do this?
setdiff() is documented on the same page as intersect().
Duncan Murdoch
More information about the R-help
mailing list