Thanks for all replies. The answer is:
eval(expression(mean(y)),local=list(y=c(1,2,3)))
LZ
-----Original Message-----
From: Zhang, Limin [mailto:Limin.Zhang@gs.com]
Sent: Thursday, October 21, 1999 12:42 PM
To: 's-news@wubios.wustl.edu'
Subject: [S] eval() question
Can someone point out what's wrong with the following S call:
-------------
> eval(mean(y),local=list(y=c(1,2,3)))
Error: Object "y" not found
Dumped
-------------------------------
Thanks
LZ
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news
|