Displaying 1 result from an estimated 1 matches for "samenumber".
Did you mean:
samplenumber
2008 Feb 13
2
How to handle Which on two matrices that do not have same number of rows
R-newbie question
I have 2 matrices
(a) P1 has only one column of 32K rows
(b) PC has 2 column {P, C} of 3200 rows
Every values in P1 matches with a value in PC[,p] (column p). I would like
to use Which to search for all value in P1 that matchex PC[,p] and get the
PC[,c]. However because P1 and PC does not have the same number of rows, I
got lots of 'NA'. Thanks for your