search for: mergeddf

Displaying 6 results from an estimated 6 matches for "mergeddf".

2011 Feb 10
0
Need help with merge
...fcstdf fcstrundate fcstdate fcst ID Name 1 5 6 22 23 Acme Corp 2 6 7 43 23 Acme Corp 3 7 8 54 23 Acme Corp 4 8 9 23 23 Acme Corp 5 9 10 NA 23 Acme Corp 6 10 11 13 23 Acme Corp > mergeddf =merge(fcstdf,actualsdf,by.x = "fcstdate",by.y = "datadate",all =TRUE) > mergeddf fcstdate fcstrundate fcst ID.x Name.x ID.y Name.y val 1 1 NA NA NA <NA> 23 Acme Corp 23 2 2 NA NA NA <NA> 23 Acme C...
2011 Oct 13
2
Comparing the components of a data frame without levels interfering
*Bottom Line: How can I compare the individual components of two data frames with different row lengths without the levels interfering?* Example: I have two data frames to those respectively named 'dfCity' and 'dfState' that have the following output: dfCity Name City 1 Bill Detroit 2 Jody Chicago 3 Frank Memphis 4 Ron Houston
2018 Feb 22
2
Duplicate column names created by base::merge() when by.x has the same name as a column in y
>>>>> Gabriel Becker <gmbecker at ucdavis.edu> >>>>> on Wed, 21 Feb 2018 07:11:44 -0800 writes: > Hi all, > For the record this approach isnt 100% backwards compatible, because > names(mergeddf) will e incompatibly different. Thatx why i claimed > bakcwards compatable-ish exactly. > That said its still worth considering imho because of the reasons stated > (and honestly one particular simple reading of the docs might suggest that > this was thr intended behav...
2018 Feb 21
0
Duplicate column names created by base::merge() when by.x has the same name as a column in y
Hi all, For the record this approach isnt 100% backwards compatible, because names(mergeddf) will e incompatibly different. Thatx why i claimed bakcwards compatable-ish That said its still worth considering imho because of the reasons stated (and honestly one particular simple reading of the docs might suggest that this was thr intended behavior all along). Im not a member of Rcore throu...
2018 Feb 23
0
Duplicate column names created by base::merge() when by.x has the same name as a column in y
...ath.ethz.ch> wrote: > >>>>> Gabriel Becker <gmbecker at ucdavis.edu> > >>>>> on Wed, 21 Feb 2018 07:11:44 -0800 writes: > > > Hi all, > > For the record this approach isnt 100% backwards compatible, because > > names(mergeddf) will e incompatibly different. Thatx why i claimed > > bakcwards compatable-ish > > exactly. > > > That said its still worth considering imho because of the reasons > stated > > (and honestly one particular simple reading of the docs might > suggest tha...
2018 Feb 20
3
Duplicate column names created by base::merge() when by.x has the same name as a column in y
Hi Frederick, It looks like I didn't overwrite the patch.diff file after the last edits. Here's the correct patch (attached and copied below): Index: src/library/base/R/merge.R =================================================================== --- src/library/base/R/merge.R (revision 74280) +++ src/library/base/R/merge.R (working copy) @@ -157,6 +157,14 @@ }