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, ls(pat=paste("cbc",*,"=")))

But it seems like the ls() part does not work. 

Could anyone give me some advice? Many thanks.


-- 
View this message in context: 
http://www.nabble.com/ls%28%29-pattern-tp14316765p14316765.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to