[R] converting character string to an expression

2007-08-08 Thread Jarrod Hadfield
Hi Everyone, I would simply like to coerce a character string into an expression: something like: as.expression(paste(letters[1:3], collapse=+)) but I can't seem to get rid of the quotes. The only way I can get it to work is using as.formula: as.expression(as.formula(paste(~,

Re: [R] converting character string to an expression

2007-08-08 Thread Stephen Tucker
I think you're looking for parse(text=paste(letters[1:3], collapse=+)) --- Jarrod Hadfield [EMAIL PROTECTED] wrote: Hi Everyone, I would simply like to coerce a character string into an expression: something like: as.expression(paste(letters[1:3], collapse=+)) but I can't seem to