[R] do.call("+", ...)
Prof Brian Ripley
ripley at stats.ox.ac.uk
Fri Nov 17 15:24:59 CET 2006
On Fri, 17 Nov 2006, Duncan Murdoch wrote:
[...]
> By the way, another complaint is that sum() is supposed to be generic,
> but you can't define a sum.matrix() method so that sum(a,b,c) does the
> same as a+b+c when a is a matrix. (This would probably be a bad idea
> because people may be relying on the current behaviour, but R tries not
> to prevent people from testing out bad ideas.)
In this case it does, and this is as documented in ?Summary, referred to
from ?sum.
--
Brian D. Ripley, ripley at stats.ox.ac.uk
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
More information about the R-help
mailing list