How to convert multipe tables into one table in a dataframe
1
0
Entering edit mode
Guest User ★ 13k
@guest-user-4897
Last seen 10.6 years ago
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.
• 640 views
ADD COMMENT
0
Entering edit mode
Dan Tenenbaum ★ 8.2k
@dan-tenenbaum-4256
Last seen 9 months ago
United States
Hi Taj, On Wed, Aug 15, 2012 at 8:02 PM, taj [guest] <guest at="" bioconductor.org=""> wrote: > > 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 > > > This is not a Bioconductor question so you might have better luck asking on R-help. http://stat.ethz.ch/mailman/listinfo/r-help Dan > -- > Sent via the guest posting facility at bioconductor.org. > > _______________________________________________ > Bioconductor mailing list > Bioconductor at r-project.org > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor
ADD COMMENT

Login before adding your answer.

Traffic: 699 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6