Skip to content
Prev 23278 / 63424 Next

turning expression object to function

Dear all,
I have the following problem.

Given an expression object 'expr' containing a certain set of symbols
(say 'a', 'b', 'c'), I would like to translate the expression object
in an R function of, say, 'a', programmatically. Here an example of
what I mean.

Given:
a call like:
should return a function (not necessarly formally) equivalent to
Some suggestions?

Best regards,
Antonio.