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 pre

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) > cl

Re: [R] storage and single-precision

2011-09-08 Thread William Dunlap
-Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@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

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 don'

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