简体   繁体   English

比较R中的数据集

[英]comparing data sets in R

I am trying to compare two sets of proteomic data. 我正在尝试比较两组蛋白质组数据。 I want to be able to look at the differences and similarities between the two sets. 我希望能够了解两组之间的差异和相似之处。 I would also like to be able to draw a venn diagram showing the number of differences and similarities found. 我还希望能够绘制一个维恩图,以显示发现的差异和相似之处的数量。 my knowledge of R is limited. 我对R的了解有限。 I have not found another program that can do this. 我还没有找到其他可以做到这一点的程序。 Please help 请帮忙

I would say you have to specify your question (datasets) to get any sufficient answer. 我想说,您必须指定问题(数据集)才能获得足够的答案。

But in general you can compare two objects like this: 但通常,您可以像这样比较两个对象:

data_1 = cbind(c(3,4,5),c(6,9,2)) 

data_2 = cbind(c(1,4,8),c(6,7,2))

data_1 == data_2

which will result in sth. 这将导致某事。 like this: 像这样:

      [,1]  [,2]
[1,] FALSE  TRUE
[2,]  TRUE FALSE
[3,] FALSE  TRUE

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM