Re: [R] storage and single-precision

2011-09-08 Thread Duncan Murdoch
On 11-09-07 6:25 PM, Mike Miller wrote: I'm getting the impression from on-line docs that R cannot work with single-precision floating-point numbers, but that it has a pseudo-mode for single precision for communication with external programs. I don't mind that R is using doubles internally, but

Re: [R] storage and single-precision

2011-09-08 Thread Mike Miller
On Thu, 8 Sep 2011, Duncan Murdoch wrote: On 11-09-07 6:25 PM, Mike Miller wrote: I'm getting the impression from on-line docs that R cannot work with single-precision floating-point numbers, but that it has a pseudo-mode for single precision for communication with external programs. I

Re: [R] storage and single-precision

2011-09-08 Thread William Dunlap
...@r-project.org] On Behalf Of Mike Miller Sent: Thursday, September 08, 2011 8:14 AM To: Duncan Murdoch Cc: R-Help List Subject: Re: [R] storage and single-precision On Thu, 8 Sep 2011, Duncan Murdoch wrote: On 11-09-07 6:25 PM, Mike Miller wrote: I'm getting the impression from

Re: [R] storage and single-precision

2011-09-08 Thread Mike Miller
On Thu, 8 Sep 2011, William Dunlap wrote: Use gzcon() to make a compressed connection and any function that write to a connection will write compressed data. E.g., con - gzcon(file(tempfile.junk, wb)) x - as.integer(rep(c(-127, 1, 127), c(3,2,1))) writeBin(x, con, size=1) close(con)

Re: [R] storage and single-precision

2011-09-08 Thread Duncan Murdoch
On 08/09/2011 11:14 AM, Mike Miller wrote: On Thu, 8 Sep 2011, Duncan Murdoch wrote: On 11-09-07 6:25 PM, Mike Miller wrote: I'm getting the impression from on-line docs that R cannot work with single-precision floating-point numbers, but that it has a pseudo-mode for single precision

[R] storage and single-precision

2011-09-07 Thread Mike Miller
I'm getting the impression from on-line docs that R cannot work with single-precision floating-point numbers, but that it has a pseudo-mode for single precision for communication with external programs. I don't mind that R is using doubles internally, but what about storage? If all I need to