[R] ls() pattern

livia yn19832 at msn.com
Thu Dec 13 15:11:50 CET 2007

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,

name1, name2, name2 are just some random names. I would like to achieve sth
(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.

More information about the R-help mailing list