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
-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
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
, 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
-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
, 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
, 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
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,
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
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
10 matches
Mail list logo