Hi,
On 03/29/2011 01:24 AM, Prof Brian Ripley wrote:
On Fri, 25 Mar 2011, William Dunlap wrote:
[...]
(The name rowsum is a metabug, since it may be confused
with the entirely different rowSums, but it has been around
for a long time.)
A lot longer than rowSums ...
Another problem with t
On Fri, 25 Mar 2011, William Dunlap wrote:
(a) In R 2.12.2 rowsum can overflow if given an integer input:
> rowsum(c(2e9L, 2e9L), c("a", "a"))
[,1]
a -294967296
> 2^32 + .Last.value
[,1]
a 4e+09
Should it be changed to coerce its x argument to numeric
(double precision) so it al
(a) In R 2.12.2 rowsum can overflow if given an integer input:
> rowsum(c(2e9L, 2e9L), c("a", "a"))
[,1]
a -294967296
> 2^32 + .Last.value
[,1]
a 4e+09
Should it be changed to coerce its x argument to numeric
(double precision) so it always returns a numeric output?
(b) When