[18665] in s-news-athena

home help back first fref pref prev next nref lref last post

RE: [S] Solution:How to convert a string to a command

daemon@ATHENA.MIT.EDU (Fowler, Mark)
Mon Jul 19 10:52:10 1999

Content-Return: allowed
Date: Mon, 19 Jul 1999 11:42:44 -0300
From: "Fowler, Mark" <FowlerM@mar.dfo-mpo.gc.ca>
To: "'S.D.Byers'" <byers@research.att.com>
Cc: "'S-news'" <s-news@wubios.wustl.edu>
Message-Id: <C1273EEC9EE3D21192B30090273D20B209BDBC@msgmarbio02.bio.dfo.ca>
Mime-Version: 1.0
Content-Type: text/plain


Thank you, it works. I thought I had tried it before, but my equivalent was:

eval(parse(st1))

which doesn't work. 

> -----Original Message-----
> From:	S.D.Byers [SMTP:byers@research.att.com]
> Sent:	 July 19, 1999 11:31 AM
> To:	Fowler, Mark
> Subject:	Re: [S] How to convert a string to a command
> 
> ## Try this:
> 
> st1 <- "ls()" 
> eval(parse(text=st1))
> 
> 
> 		#### SDB
> 
> 
-----------------------------------------------------------------------
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

home help back first fref pref prev next nref lref last post