Re: [R] merge multiple data frames

2012-04-10 Thread David M. Schruth
thank you for your help max - Original Message - From: MacQueen, Don macque...@llnl.gov To: Massimo Bressan mbres...@arpa.veneto.it; r-help@r-project.org Sent: Monday, January 30, 2012 4:47 PM Subject: Re: [R] merge multiple data frames Does this example help? It doesn't handle

Re: [R] merge multiple data frames

2012-01-31 Thread Massimo Bressan
-project.org Sent: Saturday, January 28, 2012 12:24 AM Subject: Re: [R] merge multiple data frames Not tested, but this might be a case for the sqldf package. -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 On 1/26/12 9:29 AM

Re: [R] merge multiple data frames

2012-01-30 Thread Massimo Bressan
on a_b.date=c.date) bye max - Original Message - From: MacQueen, Don macque...@llnl.gov To: maxbre mbres...@arpa.veneto.it; r-help@r-project.org Sent: Saturday, January 28, 2012 12:24 AM Subject: Re: [R] merge multiple data frames Not tested, but this might be a case for the sqldf

Re: [R] merge multiple data frames

2012-01-30 Thread Massimo Bressan
, January 26, 2012 8:19 PM Subject: Re: [R] merge multiple data frames I might do something like this: mergeAll - function(..., by = date, all = TRUE) { dotArgs - list(...) Reduce(function(x, y) merge(x, y, by = by, all = all, suffixes=paste(., names(dotArgs), sep = )), dotArgs)} mergeAll(a = a, b

Re: [R] merge multiple data frames

2012-01-30 Thread MacQueen, Don
-project.org Sent: Saturday, January 28, 2012 12:24 AM Subject: Re: [R] merge multiple data frames Not tested, but this might be a case for the sqldf package. -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 On 1/26/12 9:29 AM

Re: [R] merge multiple data frames

2012-01-27 Thread Massimo Bressan
, January 26, 2012 8:19 PM Subject: Re: [R] merge multiple data frames I might do something like this: mergeAll - function(..., by = date, all = TRUE) { dotArgs - list(...) Reduce(function(x, y) merge(x, y, by = by, all = all, suffixes=paste(., names(dotArgs), sep = )), dotArgs)} mergeAll(a = a, b

Re: [R] merge multiple data frames

2012-01-27 Thread R. Michael Weylandt
, 2012 8:19 PM Subject: Re: [R] merge multiple data frames I might do something like this: mergeAll - function(..., by = date, all = TRUE) {  dotArgs - list(...)  Reduce(function(x, y)  merge(x, y, by = by, all = all, suffixes=paste(., names(dotArgs), sep = )),  dotArgs)} mergeAll(a = a, b

Re: [R] merge multiple data frames

2012-01-27 Thread MacQueen, Don
Not tested, but this might be a case for the sqldf package. -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 On 1/26/12 9:29 AM, maxbre mbres...@arpa.veneto.it wrote: This is my reproducible example (three data frames: a,

Re: [R] merge multiple data frames

2012-01-26 Thread R. Michael Weylandt
I might do something like this: mergeAll - function(..., by = date, all = TRUE) { dotArgs - list(...) Reduce(function(x, y) merge(x, y, by = by, all = all, suffixes=paste(., names(dotArgs), sep = )), dotArgs)} mergeAll(a = a, b = b, c = c) str(.Last.value) You also might be able to set

Re: [R] merge multiple data frames

2012-01-26 Thread maxbre
thank you for your reply I'll study and test your code (which is a bit obscure to me up to now); by the way do you think that merge_all is a wrong way to hit? thanks again m -- View this message in context: http://r.789695.n4.nabble.com/merge-multiple-data-frames-tp4331089p4331830.html Sent