On Thu, 2007-10-25 at 16:26 +1000, [EMAIL PROTECTED] wrote:
> I wondered if the real problem was bigger than your abstract version.
> OK. Here is one way to do it
>
> > myfunc <- function(x) {
> nam <- deparse(substitute(x))
> val <- mean(x)
> cat("mean(", nam, ") =", val, "\n")
>
7 3286 7700
mailto:[EMAIL PROTECTED]
http://www.cmis.csiro.au/bill.venables/
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Rick Bilonick
Sent: Thursday, 25 October 2007 4:13 PM
To: R Help
Subject: Re: [R] Executing a Function in a Loop With a Changin
2 matches
Mail list logo