Off topic:How to view and save file after using Reduce(intersect, list(...)) in Rstudio
0
0
Entering edit mode
6.9 years ago
snar86 ▴ 10

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.

Rstudio • 1.4k views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 1963 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6