Re: [R] Pasting with Quotes

2012-05-07 Thread Josh Browning
Thank you both so much for your help! I ended up using bquote(expression(...)), and it's working perfectly! On Sat, May 5, 2012 at 1:05 PM, David Winsemius dwinsem...@comcast.netwrote: On May 5, 2012, at 2:42 PM, Josh Browning wrote: Hello useRs! So, I have a random question. I'm trying

[R] Pasting with Quotes

2012-05-05 Thread Josh Browning
Hello useRs! So, I have a random question. I'm trying to build a character string, then evaluate it. I think an example would be the easiest way to explain: kern.vec = c(rbfdot,polydot) for( j in 1:length( kern.vec ) ) { formula= paste(ksvm( ind ~ . ,

Re: [R] Pasting with Quotes

2012-05-05 Thread R. Michael Weylandt
What's the big picture of what you're trying to do? eval(parse(text = )) is often a less than optimal idea. Some guesses: Are you trying to construct a formula object (in the strict sense of something that you pass to a modeling function)? Maybe lazy evaluation of the deparse(substitute(x))

Re: [R] Pasting with Quotes

2012-05-05 Thread David Winsemius
On May 5, 2012, at 2:42 PM, Josh Browning wrote: Hello useRs! So, I have a random question. I'm trying to build a character string, then evaluate it. Actually you are trying to build a language object , a call or an expression. You might have gotten further with: do.call(ksvm, list(