[R] bug in error message?

Prof Brian D Ripley ripley at stats.ox.ac.uk
Thu Jul 5 08:04:38 CEST 2001


On Thu, 5 Jul 2001, Erich Neuwirth wrote:

> mm<-c(1,1,1,1)
> dim(mm)<-c(2,2)
> solve(mm)
>
> produces
>
> Error in solve.default(mm) : singular matrix `a' in solve
>
> shouldn't this refer to
> `mm'
> instead of
> `a'

There are two matrix arguments in solve.default, called `a' and `b'.
It is telling you that `a' is singular.  There is no matrix `mm' in
solve().


-- 
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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list