[R] Data frame question

Sarah Goslee sarah.goslee at gmail.com
Mon Apr 1 18:12:52 CEST 2013

That sounds like a job for merge().

If you provide an actual reproducible example using dput(), then you
will likely get some actual runnable code.


On Mon, Apr 1, 2013 at 11:54 AM, ramoss <ramine.mossadegh at finra.org> wrote:
> Hello,
> I have 2 data frames:  activity and dates.  Activity contains a l variable
> listing all activities:  activityA, activityB etc.
> The dates contain all the valid business dates.  I need to combine the 2 so
> that I get a single data frame activitydat that contains the activity name
> along w/ evevry valid business dates such as
> Name          dat
> activity A   2013-02-01
> activity A  2013-02-04
> activity A  2013-02-05
> etc
> Any thought?  Thanks ahead for your help.

Sarah Goslee

More information about the R-help mailing list