R: Comparing two binary vectors -


im new r. have 2 vectors of zeros , ones. want find rows both zeros, both ones. zeros 1 or 1 zeros. cannot seem find question considering this. thanks

ex.

  a=c(0,0,0,1,0,1,1,1,0,1)   b=c(1,0,1,0,0,0,0,1,1,1) 

you looking table...

table( , b )    b   0 1   0 2 3   1 3 2 

Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

java - SmsManager sending message more than one -