Question: (Closed) How to view and save file after using Reduce(intersect, list(...)) in Rstudio
0
gravatar for snar86
22 months ago by
snar860
snar860 wrote:

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 • 697 views
ADD COMMENTlink written 22 months ago by snar860

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!

ADD REPLYlink modified 22 months ago • written 22 months ago by Michael Dondrup45k
Please log in to add an answer.
The thread is closed. No new answers may be added.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1625 users visited in the last hour