Wednesday, 11 September 2013

Piping matrix to file/only numbers are piped

Piping matrix to file/only numbers are piped

I have a Matrix which I got through
l = cutree (clus, k = 1:j)
which looks about like:
bs 1 1 1 1 2
x 1 1 2 2 3
v 1 1 2 2 3
e 1 1 2 2 3
nn 1 1 1 3 4
j 1 2 3 4 5
Now, I wanted to write l to a file, using:
write(l, file = "datia", ncolumns = 6)
However, only the Numbers are piped to the file, not the labels.
How can I change this?

No comments:

Post a Comment