Hi,
I am using Rstudio to find the intersect between multiple tables. I have 3 tables of my SNP list of 3 tissues (bark,leaf,latex) with 2 columns. The first column is ID and the second column is SNP. Below is the command that i used to get the intersect:
bark<- read.table("314-bark-1.txt", header = T, sep = "\t")
latex<- read.table("314-latex-1.txt", header = T, sep = "\t")
leaf<- read.table("314-leaf-1.txt", header = T, sep = "\t")
v1<- c(bark)
v2<- c(leaf)
v3<- c(latex)
Reduce(intersect, list(v1, v2, v3))
Afterthat, I just get "list()". I have no idea how to see the result. How to view and save the list of intersect between that 3 tables?
Can anyone help me?
Thank you.