RE: [Rd] Changing function arguments to NULL

2005-02-28 Thread Prof Brian Ripley
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 $

RE: [Rd] Changing function arguments to NULL

2005-02-28 Thread McGehee, Robert
mes or values of the other arguments), but this may be easier said than done. -Original Message- From: Roger D. Peng [mailto:[EMAIL PROTECTED] Sent: Monday, February 28, 2005 4:58 PM To: McGehee, Robert Cc: r-devel@stat.math.ethz.ch Subject: Re: [Rd] Changing function arguments to NUL

Re: [Rd] Changing function arguments to NULL

2005-02-28 Thread Roger D. Peng
I'm not sure what you're doing but did you try recursionFUN$x <- list(NULL) ? -roger McGehee, Robert wrote: I'm trying to build a recursive set of functions that take a set of arguments, change some of the arguments and recursively call the same (or different) function. For example here's a stupid