Dear R-Helpers,
I have the following code:

data =
  read.csv("test.csv",header=T,na.strings="-",row.names=1)
myData=as.matrix(data)

##myData is a 102x19 matrix
myList = alply(myData, 2,function(x){matrix(x,ncol=6,byrow=T)})

##myList is a list containing 19 matrices with the following names
> names(myList)
 [1] "*ES"       "*ET"       "*ER"       "*DS"       "*DT"       "*DR"
 [7] "*VS"       "*VT"       "*G4per"    "*G29per"   "*FvFm42"   "*FvFm29"
[13] "*Tillers"  "*DryWtGC"  "*LeafArea" "*SPAD"     "*RootCon"  "*ShootCon"
[19] "*LeafTips"

I want to save the result of the list into a file, so that the matrices are
placed one below the other AND the name is also written above the
corresponding matrix.

Something like ..

*ES
1st-matrix
*ET
2nd-matrix
...

*LeafTips
19th-matrix


if I do -

do.call("rbind",myList)

It combines all these matrices but the names of these matrices are lost.

Any ideas?

Thanks
S.

sessionInfo()
---------------------
R version 2.9.2 (2009-08-24)
x86_64-pc-linux-gnu

locale:
LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=C;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] plyr_0.1.9
------------------------

	[[alternative HTML version deleted]]


