Re: [R] list of symbols to substitution

2009-09-16 Thread Michael Spiegel
Ah whoops (and thank you). I forgot to mention an additional constraint: I'm trying to use exactly one eval statement. Some background information on this constraint. Some of the expressions that are being evaluated may return an error. At the moment, I'm wrapping each of the individual express

Re: [R] list of symbols to substitution

2009-09-15 Thread Schalk Heunis
Instead of eval(expr), use lapply(expr,eval) HTH Schalk Heunis On Wed, Sep 16, 2009 at 5:50 AM, Michael Spiegel < michael.m.spie...@gmail.com> wrote: > Hi, > > I'm trying to use a list of symbols as one of the values to be > substituted in a substitute expression, but I can't figure out how to

[R] list of symbols to substitution

2009-09-15 Thread Michael Spiegel
Hi, I'm trying to use a list of symbols as one of the values to be substituted in a substitute expression, but I can't figure out how to write the correct expression for my problem. Let me illustrate a simple example of what I'm trying to do. The following code snippet will evaluate to '5': sym