I have a 6D matrix (it may eventually get larger) that I would like to save as a txt, csv or xcel file. I want to do this because the output is too big for the console window and I just want to be able to look over the data quickly before analysing it. Also, my supervisor doesn't work with R so if I want him to look at the data I need to be able to export it out of R.
What I want is to be able to see the data, with headings telling me which part of the matrix I'm in. i.e.
, , 1, 5, 6, 5
Alternatively the data could be rearranged into a table provided that each row of the data set specifies which part of the matrix it was in. e.g. a column per dimension of the matrix.
So far I've tried write.matrix
, write.csv
, and write.big.matrix
with no success.
The error message I get for write.big.matrix
is:
Error in (function (classes, fdef, mtable) :
unable to find an inherited method for function ‘write.big.matrix’ for signature ‘"array", "character"’
Many thanks for your help.