Re: [Rd] two minor bugs in rowsum()

2011-03-29 Thread Hervé Pagès
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

[Rd] two minor bugs in rowsum()

2011-03-25 Thread William Dunlap
(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