This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to view and save file after using Reduce(intersect, list(...)) in Rstudio

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

Hello snar86!

We believe that this post does not fit the main topic of this site.

Not a bioinformatics question.

For further explanation, you are having bioinformatics related data, however that is not the essence of the question, but something like "how to save and view a list in RStudio", which is not specific to computational biology; the answer as such does not change for whatever type of data you have as input. (P.s.: it is most likely something command like print, save, or View)

For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.

If you disagree please tell us why in a reply below, we'll be happy to talk about it.

Cheers!

0 answers

No answers yet.

Log in to answer this question.