[BioC] How to convert multipe tables into one table in a dataframe

taj [guest] guest at bioconductor.org
Thu Aug 16 05:02:43 CEST 2012


Anyone can help me in managing a dataframe?
I have data (.txt) like this (2 tables with one title, 4 columns and 2 rows per table):
group 1	num: 3		
a	b	c	d
1	2	3	4
6	7	8	9
			
group 2 	num: 5		
a	b	c	d
4	6	8	10
2	12	6	14


And I want to combine these tables in a dataframe ( in a table with 6 columns and 4 rows) as follow:
group	num	a	b	c	d
1	3	1	2	3	4
1	3	6	7	8	9
2	5	4	6	8	10
2	5	2	12	6	14

Thanks in advance,



 -- output of sessionInfo(): 

group	num	a	b	c	d
1	3	1	2	3	4
1	3	6	7	8	9
2	5	4	6	8	10
2	5	2	12	6	14



--
Sent via the guest posting facility at bioconductor.org.



More information about the Bioconductor mailing list