[R] Frequency count of Boolean pattern in 4 vectors.

2013-06-01 Thread Sridhar Iyer
I need to do this on very large datasets ( a few million data points). So seeking help in figuring out an implementation of the task. Input 4 vectors which contain values as 0 or 1. (as integers, not boolean bits) vec_A = ( 0, 1, 0, 0, .. 1, 0, 1, 0) etc vec_B = (0,0,1,1.) vec_C, vec_D

[R] R- merging two matrix

2012-09-10 Thread Sridhar Iyer
Hi, I have two matrices. (same size, same number of rows, same names for the rows - one has data in sorted order, another one master data in unsorted order. I need to combine both). Rows names of Matrix A P, Q, R, S, T, U, V ...(some order) - each row has 4 values Row names of