Re: [R] Parse Expression

2007-12-17 Thread Duncan Murdoch
livia wrote: > Hello everyone, I would like to construct a datafram with the following > command. > > eval(parse(text=paste("df=data.frame(", cmd, ")", sep=""))) > > But it comes out " Error in parse(file, n, text, prompt, srcfile, encoding) > : > syntax error, unexpected $undefined, expe

[R] Parse Expression

2007-12-17 Thread livia
Hello everyone, I would like to construct a datafram with the following command. eval(parse(text=paste("df=data.frame(", cmd, ")", sep=""))) But it comes out " Error in parse(file, n, text, prompt, srcfile, encoding) : syntax error, unexpected $undefined, expecting ',' in "df=data.fram