[BioC] How to convert multipe tables into one table in a dataframe
Dan Tenenbaum
dtenenba at fhcrc.org
Thu Aug 16 05:04:56 CEST 2012
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
More information about the Bioconductor
mailing list