[Rd] Unused argument "na.action" to pairs.formula

From: <Tim.Keighley_at_csiro.au>
Date: Mon 27 Jun 2005 - 04:25:03 GMT


Hi,

I believe that the argument "na.action" is not used in the function pairs.formula (graphics). I am using R 2.1.1 for Windows, downloaded from CRAN.

This is the body of the function as it is now:

function (formula, data = NULL, ..., subset, na.action = stats::na.pass)

{

    m <- match.call(expand.dots = FALSE)     if (is.matrix(eval(m$data, parent.frame())))

        m$data <- as.data.frame(data)
    m$... <- NULL
    m$na.action <- stats::na.pass
    m[[1]] <- as.name("model.frame")
    mf <- eval(m, parent.frame())
    pairs(mf, ...)
}

I think the line "m$na.action <- stats::na.pass" should be "m$na.action <- na.action". Please correct me if I am wrong or this has already been fixed.

Cheers,
Tim Keighley



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Mon Jun 27 14:28:05 2005

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 03:21:09 GMT