`Hi all,
I am quite new with R. I looked for the answer in many website but I didn't find a clear way to solve my problem.
I have a data frame with two columns with each column has a list of SNPs in more than 1000 rows but not the same number of row.
SNP1 SNP2
rs3094315 rs3094315
rs3131972 rs3131972
rs11240777 rs11240777
rs6681022 rs6681049
rs4970383 rs4970383
rs7537756 rs7537756
rs13302982
I did > match(df$SNP1, df$SNP2) and find the indices of row having NA value which is the mismatch. But now, I want to get the rs# instead of the indices of the rows. How can I get this rs# instead of row indices?
Thank you
Hi dan.shea, I have similar prob. Actually i want extract unique value from ColumnA compared with B,C,D,E,F. Means the want to extract gene name which is present in columnA which is not present in any other remaining 5 columns. Thanks.
Hi dan.shea,
Thank you very much, you save my day. I was using excel and waiting almost a day for the comparison because of the huge data. And tried to find how to do it with R.
Thank you