[R] R intersect()

S Ellison S.Ellison at LGCGroup.com
Tue Jun 28 17:02:15 CEST 2016


>     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 want a command to return me values from licenseY that are not in
> intersect(). Does anyone know how should I do this?

Consider 
setdiff( licenseY, licenseX) 

or, more or less equivalently,
licenseY[ (!licenseY %in% licenseX) ]

S Ellison


*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}



More information about the R-help mailing list