[R] Error in doc of corresp?

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Nov 12 11:58:13 CET 2001

On Mon, 12 Nov 2001, Agustin Lobo wrote:

> I think that there is a problem in the doc
> of MASS function corresp:

No, the problem is in R itself.  Remember MASS is a port from S code, and
this works as documented in S.  I am fairly sure it once worked in R too.

Try calling corresp.matrix directly to work around an R bug.

corresp is

> corresp
function (x, ...)
    if (is.null(class(x)))
        class(x) <- data.class(x)

That correctly sets the class of x to "matrix", but it then dispatches
corresp.default, even though corresp.matrix exists.

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