From wdunlap at tibco.com  Tue Aug  8 20:59:45 2017
From: wdunlap at tibco.com (William Dunlap)
Date: Tue, 8 Aug 2017 11:59:45 -0700
Subject: [Rd] arithmetic with zero-column data.frames
Message-ID: <CAF8bMcbJdWbfxHrk9hYaPn+O9pzeMByBfMAePoTPcDPS0wQH3Q@mail.gmail.com>

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
= FALSE) :
  row names supplied are of the wrong length
> data.frame(row.names=c("A","B")) * 2
Error in data.frame(value, row.names = rn, check.names = FALSE, check.rows
= FALSE) :
  row names supplied are of the wrong length
> data.frame(row.names=c("A","B")) / data.frame(row.names=c("A","B"))
Error in data.frame(value, row.names = rn, check.names = FALSE, check.rows
= FALSE) :
  row names supplied are of the wrong length

Bill Dunlap
TIBCO Software
wdunlap tibco.com

	[[alternative HTML version deleted]]



[Rd] arithmetic with zero-column data.frames
William Dunlap