[R] Reading single precision floats from binary file

Prof Brian D Ripley ripley at stats.ox.ac.uk
Thu Feb 15 20:19:01 CET 2001

On Thu, 15 Feb 2001, Kjetil Kjernsmo wrote:

> On Thu, 15 Feb 2001, Prof Brian Ripley wrote:
> >> Now, the docs say that what you can read is "numeric", "double",
> >> "integer", "int", "logical", "complex", "character", and since "single" is
> >> not on the list, is it simply not the right tool for the job?
> >
> >R does not have a "single" mode for vectors,
> I know.
> >and that is what it says you can specify as `what'.
> Ah, I see. I read it as "what kind of data you will read from file (or
> connection)". Hm, I wonder if something along the lines of "the mode of
> the resulting R vector" would be clearer?

It says:

    what: Either an object whose mode will give the mode of the vector
          to be read, or a character vector of length one describing
          the mode: one of `"numeric", "double", "integer", "int",
          "logical", "complex", "character"'.

so `of the vector to be read' is in there already.

Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list