Re: [Rd] cummax / cummin for complex numbers

2014-07-14 Thread Michael Haupt
.. spot on. :-) Apologies for not having been more "pointy" about the problem - this just confirms it *is* kind of subtle. :-) Best, Michael Am 14.07.2014 um 17:18 schrieb Duncan Temple Lang : > I believe Michael's point is that the error messages > are incorrect - referring to cunmax when cu

Re: [Rd] cummax / cummin for complex numbers

2014-07-14 Thread Marc Schwartz
Ah! That was not clear and this early on a Monday morning, insufficient caffeine levels are common. :-) I can confirm that this is still an issue in 3.1.1, which is a version newer than what Michael is running and the current stable release. They appear to be still reversed in the current SVN

Re: [Rd] cummax / cummin for complex numbers

2014-07-14 Thread Duncan Temple Lang
I believe Michael's point is that the error messages are incorrect - referring to cunmax when cunmin was called and vice verse. D. On 7/14/14, 8:14 AM, Ben Bolker wrote: > Michael Haupt oracle.com> writes: > >> >> Dear all, >> >> in R 3.1.0, this is happening: >> >>> cummin(c(1+1i,2-3i,4+5i))

Re: [Rd] cummax / cummin for complex numbers

2014-07-14 Thread Ben Bolker
Michael Haupt oracle.com> writes: > > Dear all, > > in R 3.1.0, this is happening: > > > cummin(c(1+1i,2-3i,4+5i)) > Error in cummin(c(1 + (0+1i), 2 - (0+3i), 4 + (0+5i))) : > 'cummax' not defined for complex numbers > > cummax(c(1+1i,2-3i,4+5i)) > Error in cummax(c(1 + (0+1i), 2 - (0+3i),

Re: [Rd] cummax / cummin for complex numbers

2014-07-14 Thread Marc Schwartz
On Jul 14, 2014, at 9:53 AM, Michael Haupt wrote: > Dear all, > > in R 3.1.0, this is happening: > >> cummin(c(1+1i,2-3i,4+5i)) > Error in cummin(c(1 + (0+1i), 2 - (0+3i), 4 + (0+5i))) : > 'cummax' not defined for complex numbers >> cummax(c(1+1i,2-3i,4+5i)) > Error in cummax(c(1 + (0+1i), 2

[Rd] cummax / cummin for complex numbers

2014-07-14 Thread Michael Haupt
Dear all, in R 3.1.0, this is happening: > cummin(c(1+1i,2-3i,4+5i)) Error in cummin(c(1 + (0+1i), 2 - (0+3i), 4 + (0+5i))) : 'cummax' not defined for complex numbers > cummax(c(1+1i,2-3i,4+5i)) Error in cummax(c(1 + (0+1i), 2 - (0+3i), 4 + (0+5i))) : 'cummin' not defined for complex number