[Rd] Rinternals.h could expose macros for ISNA and ISNAN for CPLXSXP

2020-01-29 Thread Scott Ritchie
ISNA(x.i)) #define ISNAN_COMPLEX(x) (ISNAN(x.r) || ISNAN(x.i)) ``` Best, Scott Ritchie [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Duplicate column names created by base::merge() when by.x has the same name as a column in y

2018-02-22 Thread Scott Ritchie
the column name shouldn't break it. > > > I don't know if you need to update the documentation as part of your > > patch, or if whoever applies it would be happy to do that. Somebody > > from R core want to weigh in on this? > > > I attach a f

Re: [Rd] Duplicate column names created by base::merge() when by.x has the same name as a column in y

2018-02-20 Thread Scott Ritchie
ecent patch is identical to > the previous one, can you confirm this? > > Frederick > > On Mon, Feb 19, 2018 at 07:19:32AM +1100, Scott Ritchie wrote: > > Thanks Gabriel, > > > > I think your suggested approach is 100% backwards compatible > > > > Curr

Re: [Rd] Duplicate column names created by base::merge() when by.x has the same name as a column in y

2018-02-18 Thread Scott Ritchie
7; column > is called name and y's 'name' column (not used int he merge) is changed to > name.y. > > Now of course this would still change output, but it would change it to > something I think would be better, while retaining the 'merge columns > retain their

Re: [Rd] Duplicate column names created by base::merge() when by.x has the same name as a column in y

2018-02-17 Thread Scott Ritchie
too much trouble to change now that R is more than 20 > years old. And in many cases it will turn out that the way R does it > actually does make more sense than the way I would have done it. > > Duncan Murdoch > > > >> Cheers, >> >> Frederick >>

Re: [Rd] Duplicate column names created by base::merge() when by.x has the same name as a column in y

2018-02-17 Thread Scott Ritchie
The attached patch.diff will make merge.data.frame() append the suffixes to columns with common names between by.x and names(y). Best, Scott Ritchie On 17 February 2018 at 11:15, Scott Ritchie wrote: > Hi Frederick, > > I would expect that any duplicate names in the resulting data.fr

Re: [Rd] Duplicate column names created by base::merge() when by.x has the same name as a column in y

2018-02-16 Thread Scott Ritchie
make the names of the result unique. > > Since the first "name" column was used in merging, leaving both > without a suffix seems consistent with the documentation... > > Frederick > > On Fri, Feb 16, 2018 at 09:08:29AM +1100, Scott Ritchie wrote: > > Hi, &

[Rd] Duplicate column names created by base::merge() when by.x has the same name as a column in y

2018-02-15 Thread Scott Ritchie
sex.y age.y 1 Max M43 Sebastian M 8 2 Qin F36 Kai-lee F 7 3 Sarah F41Oliver M 5 Warning message: In merge.data.frame(parents, children, by.x = "name", by.y = "parent") : column name ‘name’ is duplicated in the result ``` Kind Regards, Scott Ritchie [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel