I cannot export an R matrix to Excel with the values of the R-matrix exported in separate cells in Excel.
When I use the write.csv or write.table functions and try to open the output in Excel, the values of each row are merged into one cell in Excel. So each random cell in Excel looks something like this: [0.33,0.24,0.23,02] while I would like to have each value in separate cells like this: [0.33] [0.24] [0.23] etc.
[,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8]
[1,] 1.0000000 0.8662618 0.9990604 0.9966197 0.9995365 0.9958028 0.9475572 0.9977010
[2,] 0.8662618 1.0000000 0.8568601 0.8846999 0.8524181 0.8930027 0.8778416 0 .8630592
[3,] 0.9990604 0.8568601 1.0000000 0.9965658 0.9994639 0.9947839 0.9501188 0.9977547
[4,] 0.9966197 0.8846999 0.9965658 1.0000000 0.9952404 0.9969191 0.9614838 0.9950432
[5,] 0.9995365 0.8524181 0.9994639 0.9952404 1.0000000 0.9941026 0.9432181 0.9974717
[6,] 0.9958028 0.8930027 0.9947839 0.9969191 0.9941026 1.0000000 0.9587064 0.9972479
[7,] 0.9475572 0.8778416 0.9501188 0.9614838 0.9432181 0.9587064 1.0000000 0.9581845
[8,] 0.9977010 0.8630592 0.9977547 0.9950432 0.9974717 0.9972479 0.9581845 1.0000000
I used these functions:
write.csv(cosmatBB, "2005cossims.csv")
write.table(cosmatBB, "cossimssTabelPoging.csv", sep=",")
But i did not get the desired output in Excel.
Thanks in advance.