Displaying 1 result from an estimated 1 matches for "p010".
Did you mean:
2010
2008 Feb 13
2
How to handle Which on two matrices that do not have same number of rows
...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 help.
Example..
P1 <- {'p001', 'p001', 'p002', 'p010'..}
PC <- { c('p001','class a'), c('p002', 'class b'),.. , c('p010', 'class
10')}
Result <- {c('p001', 'class a'), c('p001', 'class a'), c ('p002', 'class
b'), c('p010', 'class...