On Mon, 28 Feb 2005, McGehee, Robert wrote:
But passing list(NULL) or NULL into a function may have entirely different results.
For a replacement operator expecting a list, list(NULL) *is* what you want. BTW, this is FAQ 7.1.
foo <- alist(x = 5, y = 2, z = 3) foo["x"] <- list(NULL) foo
$x NULL
$y [1] 2
$z [1] 3
if (as I guess) you want to set the default value to NULL, not `the argument to NULL'.
[...]
-- Brian D. Ripley, [EMAIL PROTECTED] 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
______________________________________________ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel