[R] Combining Data Frames

jim holtman jholtman at gmail.com
Mon Jul 16 19:22:20 CEST 2012


?rbind

On Mon, Jul 16, 2012 at 1:17 PM, Lauren Vogric
<lvogric at grahamcapital.com> wrote:
> I have 2 data tables. Each hold information categorized into "Date" and "Price." What I need to do is combine the two to get 2 columns of "Date" and "Price," by continuing the table downwards with the new rows supplied from the second table. So, for example I have
> 5/1/12  2
> 5/2/12  5
> As data table 1 and
> 5/3/12 65
> 5/4/12 7
> As data table 2 and I need to create the data table
> 5/1/12  2
> 5/2/12  5
> 5/3/12 65
> 5/4/12 7
>
>
> Any ideas how to do it?
> Thanks!
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



-- 
Jim Holtman
Data Munger Guru

What is the problem that you are trying to solve?
Tell me what you want to do, not how you want to do it.



More information about the R-help mailing list