On 28/01/2010, at 2:59 AM, Joe Trubisz wrote:
Hello...
In other languages (e.g. php, perl), you have the ability to create a
valid string and execute the string to get the result. For example (in
pseudo-R):
S-which(m==4)
R-exec(S)
I know this does not work, but was wondering if there was an
m - c(1,4,2,3,7,5)
S - which(m==4)
P - parse(text=S)
R - eval(P)
R
Before you do this, see fortune(106)
fortune(106)
If the answer is parse() you should usually rethink the question.
-- Thomas Lumley
R-help (February 2005)
On Wed, Jan 27, 2010 at 8:59 AM, Joe Trubisz jtrub...@mac.com
2 matches
Mail list logo