Re: [Rd] arithmetic with zero-column data.frames

2017-08-14 Thread Martin Maechler
> Martin Maechler > on Wed, 9 Aug 2017 12:39:26 +0200 writes: > So as often there is more to it than you first think. > Let's consider this an RFC (for experienced long time R users) : > Martin Maechler > on Wed, 9 Aug 2017 10:45:56 +0200 writes: > William D

Re: [Rd] arithmetic with zero-column data.frames

2017-08-09 Thread Martin Maechler
So as often there is more to it than you first think. Let's consider this an RFC (for experienced long time R users) : > Martin Maechler > on Wed, 9 Aug 2017 10:45:56 +0200 writes: > William Dunlap via R-devel > on Tue, 8 Aug 2017 11:59:45 -0700 writes: >> Should ar

Re: [Rd] arithmetic with zero-column data.frames

2017-08-09 Thread Martin Maechler
> William Dunlap via R-devel > on Tue, 8 Aug 2017 11:59:45 -0700 writes: > Should arithmetic operations work on zero-column data.frames (returning a > zero-column data.frame with the same number of rows as the data.frame > argument(s))? Currently we get: >> 1 + data

[Rd] arithmetic with zero-column data.frames

2017-08-08 Thread William Dunlap via R-devel
Should arithmetic operations work on zero-column data.frames (returning a zero-column data.frame with the same number of rows as the data.frame argument(s))? Currently we get: > 1 + data.frame(row.names=c("A","B")) Error in data.frame(value, row.names = rn, check.names = FALSE, check.rows = FALS