Re: [Rd] round() and signif() do not check argument names when a single argument is given

2020-05-26 Thread Martin Maechler
> Shane Mueller > on Sat, 23 May 2020 00:37:57 -0400 writes: > On Fri, May 22, 2020 at 9:55 PM David Winsemius > wrote: >> The premise in the first few lines of your preamble is at odds (in the >> logical sense) with my understanding of primitive function behavior.

Re: [Rd] round() and signif() do not check argument names when a single argument is given

2020-05-23 Thread Shane Mueller
On Fri, May 22, 2020 at 9:55 PM David Winsemius wrote: > The premise in the first few lines of your preamble is at odds (in the > logical sense) with my understanding of primitive function behavior. Try: > > data.frame(x=1:2,y=letters[1:2])[j=2, i=1] > > David > I had never seen naming indexes

[Rd] round() and signif() do not check argument names when a single argument is given

2020-05-22 Thread Shane Mueller
Hi, I was told to send this to the -devel list instead of posting to bugzilla. When round our signif are called with a single named argument, R does not check the name and runs the function with that named argument directly as the first argument, using 0.0 or 6.0 (6 in the case of signif) for