[19140] in s-news-athena
Re: [S] converting a list of dataframes into a single dataframe
daemon@ATHENA.MIT.EDU (John Thaden)
Wed Sep 8 11:02:38 1999
Message-Id: <3.0.3.32.19990908095542.00a38778@pop.flash.net>
Date: Wed, 08 Sep 1999 09:55:42 -0500
To: John.Gavin@wdr.com
From: John Thaden <jjthaden@flash.net>
Cc: s-news@wubios.wustl.edu
In-Reply-To: <H00004ac0a5d9235@MHS>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
This works:
>rbind.data.frame(input[[1]], input[[2]])
x y z
1 1 f1 o2
2 2 f1 o2
3 3 f2 o1
4 4 f3 o3
5 5 f3 o2
>I have a long list of data frames. . . .
>How can I produce a new single data frame
>Example: given the list 'input' I want to produce
>the data frame 'output'.
>
>input
>$a:
> x y z
>1 1 f1 o2
>2 2 f1 o2
>3 3 f2 o1
>
>$b:
> x y z
>1 4 f3 o3
>2 5 f3 o2
>
>> output
> x y z
>1 1 f1 o2
>2 2 f1 o2
>3 3 f2 o1
>4 4 f3 o3
>5 5 f3 o2
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news