Re: [R] export/import matrix

2011-08-01 Thread jim holtman
If you are just exporting it so you can read it back into R later, it is better to use save/load since it keep the data in the internal format so it will look the same. Can you describe what you are going to be doing with the data that you 'export'; that might help us come up with a solution to yo

Re: [R] export/import matrix

2011-08-01 Thread David Winsemius
On Jul 31, 2011, at 7:54 PM, Rosario Garcia Gil wrote: Hello I have a problem on keeping the format when I export a matrix file with the write.table() function. The quick answer is ... don't do that. Use save() if you want to preserve the attributes of an R object. And that especially

Re: [R] export/import matrix

2011-08-01 Thread Dieter Menne
Rosario Garcia Gil-2 wrote: > > I have a problem on keeping the format when I export a matrix file with > the write.table() function. > > When I import the data volcano from rgl package it looks like this in R: > >> data[1:5,] > [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12

[R] export/import matrix

2011-07-31 Thread Rosario Garcia Gil
Hello I have a problem on keeping the format when I export a matrix file with the write.table() function. When I import the data volcano from rgl package it looks like this in R: > data[1:5,] [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [,14] [1,] 100 100 101 1