Skip to content

prod(numeric(0)) surprise

1 message · Brian Ripley

#
On Mon, 9 Jan 2006, Thomas Lumley wrote:

            
There is an Svr4 addendum to the original S recycling rule which R 
implements: any vector/array expression with a length-0 component has a 
length-0 result. (Note the qualifier in there.)  See `S Programming' pp. 
17,27 for more details.  So the `wart' is part of a general rule.