On Tue, 12 Aug 2003, Thomas Lumley wrote:

> On Wed, 13 Aug 2003 [EMAIL PROTECTED] wrote:
> 
> > If all rows are in the same "group", rowsum() returns a vector instead of a
> > (1xN) matrix, contrary to documentation:
> >
> 
> Yes, and it appears to be deliberate since rowsum.default() ends with
> drop(rval), though I don't remember why it was this way.
> 
> Is there a strong preference for changing the function vs changing the
> documentation?

I'd change the function.  The Therneau original function of this name 
returns a 1xN matrix, and it is easier to drop() that to reinstate.

-- 
Brian D. Ripley,                  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-devel

Reply via email to