Hi,
I have 3 tables of gene list from 3 type of tissues with 2 columns. The first column is ID and the second column is gene. I want to find the intersect between these 3 tables of genes. Does anyone can help me on how to get the intersect using Rstudio? Really need some help.
Thank you.
Use something like this which returns all elements of table1, column 1, that are also in table 2, column1. Taking genes to be in column1.
Thank you for the answer. But i have 3 tables. How to find the intersect between 3 tables?
Hi, here is a reproducible example for you to play with. FWIW my answer was based on learning about elements and selecting from data.frame/matrix structures and is probably not the best way, as seen in other answers.
You can see that G2, G3 are the only genes in each table, and this is evident from newTable object. Think about what each component is doing, and how the elements of the table (as vectors) are being accessed and compared.
Thank you sir for the suggesstion. But, the problem is, my table is very big. I have 100,000 plus rows for every table. Is there any way more suited with my situation sir?