Dear All:
I try to export my output's data to Excel spreadsheet. My outputs are:
>comb3
[,1] [,2] [,3]
[1,] "a" "b" "c"
[2,] "a" "b" "d"
[3,] "a" "b" "e"
[4,] "a" "b" "f"
[5,] "a" "b" "g"
I used
cat(comb3,file="c:\comb3.xls",fill=FALSE,sep="\n"). The
probelm is that all of data in Excel is in one column. How to let the data list
as matrix. Even I used
mcomb3<-matrix(comb3,nrow,ncol=)
and use
cat(mcomb3,file="c:\comb3.xls",fill=FALSE,sep="\n").
But nothing changed.
Thanks in advance!
Xin
[[alternative HTML version deleted]]