[R] how to pass user input to a function?

Michael E. Driscoll mike at dataspora.com
Tue Aug 25 18:40:51 CEST 2009


Hi Ista -

I've had success using the do.call function with RApache

 do.call(func, arglst)

where 'func' is the function you desire to use, 'arglst' is a list of arguments.

You may need to do some cleanup of the arguments using evalq()
function (so that numbers are treated as numbers, for example).

HTH,

Mike
-- 
p: 415.860.4347
b: www.dataspora.com/blog
t: www.twitter.com/dataspora




More information about the R-help mailing list