Re: [R] Java parser for R data file?

2007-12-06 Thread David Coppit
On 12/5/07 12:15 PM, Prof Brian Ripley [EMAIL PROTECTED] wrote: On Wed, 5 Dec 2007, David Coppit wrote: Or, given that I'm dealing with just a single array, would it be better to roll my own I/O using write.table or write.matrix from the MASS package? It would be much easier. The save()

Re: [R] Java parser for R data file?

2007-12-06 Thread kchine
Dear David, You may also consider using the biocep project' tools and frameworks. they provide an advanced bridge that allow you to exchange between R and Java any standard R Object and any mapped S4 object. the object extracted to Java (an RList for you data) can be serialized to a file (saved

[R] Java parser for R data file?

2007-12-05 Thread David Coppit
Hi everyone, Has anyone written a parser in Java for either the ASCII or binary format produced by save()? I need to parse a single large 2D array that is structured like this: list( 32609_1 = c(-9549.39231289146, -9574.07159324482, ... ), 32610_2 = c(-6369.12526971635, -6403.99620977124,

Re: [R] Java parser for R data file?

2007-12-05 Thread Prof Brian Ripley
On Wed, 5 Dec 2007, David Coppit wrote: Hi everyone, Has anyone written a parser in Java for either the ASCII or binary format produced by save()? I need to parse a single large 2D array that is structured like this: list( 32609_1 = c(-9549.39231289146, -9574.07159324482, ... ),

Re: [R] Java parser for R data file?

2007-12-05 Thread Michael Hoffman
David Coppit wrote: Hi everyone, Has anyone written a parser in Java for either the ASCII or binary format produced by save()? You might want to consider using the hdf5 package to save the array in HDF5 format. There are HDF5 libraries for Java as well