Displaying 2 results from an estimated 2 matches for "cbcdummy10to12".
2007 Dec 17
1
Parse Expression
...fram 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.frame(cbcDummy10to12 = 1,cbcForeWrld_Ret = 1,cbcYC10-2_"
"cmd" is a character string I obtained before, it is like:
cmd
[1] "cbcDummy10to12 = 1,cbcForeWrld_Ret = 1,cbcYC10-2_wld = 1"
Could anyone give me some advice? Many thanks.
--
View this message in context: http://www.nabble.com/Pa...
2007 Dec 13
6
ls() pattern
Hello everyone,
I get some data in the following format and I would like to combine them to
form a dataframe.
The data is like:
cbcname1 = 0.1,
cbcname2= 0.2,
cbcname3=0.3,...
name1, name2, name2 are just some random names. I would like to achieve sth
like:
(cbcname1=0.1, cbcname2=0.2, cbcname3=0.3,......)
I am using the following codes
do.call(cbind,