Skip to content
Prev 169319 / 398502 Next

R command to compare two vectors?

Here is one other way:

bnota <- setdiff(b_tmp, a_tmp)

gives the members of b_tmp that are not in a_tmp so length(bnota) == 0
if all of b_tmp is in a_tmp.

On Wed, Feb 4, 2009 at 6:56 PM, Jorge Ivan Velez
<jorgeivanvelez at gmail.com> wrote: