Re: [R] How to create data frame from data with unequal length

2007-11-28 Thread Henrique Dallazuanna
Try this: merge(df1, df2, by.y=1, by.x=1, all=T) merge(df1, df2, by.y=1, by.x=1) On 28/11/2007, tom soyer <[EMAIL PROTECTED]> wrote: > Hi, > > I have two sets of data that I would like to put into a data frame. But > since they have different length, I am not sure how to do this. Here is an > exa

Re: [R] How to create data frame from data with unequal length

2007-11-28 Thread Peter Dalgaard
tom soyer wrote: > Hi, > > I have two sets of data that I would like to put into a data frame. But > since they have different length, I am not sure how to do this. Here is an > example of my data: > > data set one: > date growth > 1/1/2007 10 > 1/2/2007 10.2 > 1/3/2007 10.4 > 1/4/200

Re: [R] How to create data frame from data with unequal length

2007-11-28 Thread tom soyer
Merge worked! Thanks!!! On 11/28/07, Matthew Keller <[EMAIL PROTECTED]> wrote: > > Tom, > > Check out ?merge. Does exactly what you need > > Matt > > On Nov 28, 2007 11:27 AM, tom soyer <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I have two sets of data that I would like to put into a data frame. B

Re: [R] How to create data frame from data with unequal length

2007-11-28 Thread Matthew Keller
Tom, Check out ?merge. Does exactly what you need Matt On Nov 28, 2007 11:27 AM, tom soyer <[EMAIL PROTECTED]> wrote: > Hi, > > I have two sets of data that I would like to put into a data frame. But > since they have different length, I am not sure how to do this. Here is an > example of my dat