[R] is.null() and lm obj

ripley@stats.ox.ac.uk ripley at stats.ox.ac.uk
Tue Feb 11 16:02:04 CET 2003


On Tue, 11 Feb 2003 ripley at stats.ox.ac.uk wrote:

> Partial matching!
> 
> obj$x matches obj$xlevels.  You need to use obj[["x"]] to be sure to
> get exactly that component.

Apparently you need obj[[match("x", names(obj), 0)]] in current R.

-- 
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