Re: [R] write matrix M including names(dimnames(M))

2009-08-01 Thread David Winsemius
On Jul 30, 2009, at 11:50 PM, Steve Jaffe wrote: I can do this by writing (and reading) the file according to some format of my own devising, but I'm wondering if there is a built-in way to write and then restore a matrix with not only the dimnames (which write.table/read.table can

[R] write matrix M including names(dimnames(M))

2009-07-30 Thread Steve Jaffe
I can do this by writing (and reading) the file according to some format of my own devising, but I'm wondering if there is a built-in way to write and then restore a matrix with not only the dimnames (which write.table/read.table can preserve) but also the names(dimnames)? Example: M -