[R] [BioC] comparing two tables

tomkina tsimakova at sequoiag.com
Thu May 30 10:45:36 CEST 2013


Hello,

I have the similar task.  I have two tables and I need to get the third
table containing data from both of them with extra column with information
of what data from which table:

table1			
chr	pos	ref	alt
chr1	5	A	G
chr1	8	T	C
chr2	2	C	T

table2			
chr	pos	ref	alt
chr1	5	A	G
chr1	7	T	C
chr1	8	T	A

resulted table
chr	pos	ref	alt	info
chr1	5	A	G	1, 4
chr1	7	T	C	4
chr1	8	T	C	1
chr1	8	T	A	4

I need all 4 columns (chr, pos, ref and alt) to be compared. I didn't find
this function in Bioconductor. I am a beginner at R and would appreciate any
help.

Thanks,
Tamara






--
View this message in context: http://r.789695.n4.nabble.com/comparing-two-tables-tp3936306p4668272.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list