[R] reading 2-byte integers using readBin and connections
Prasad, Rajiv
Rajiv.Prasad at pnl.gov
Tue Mar 5 18:12:09 CET 2002
Thanks, Thomas. On second (actually that number is a little higher) reading
of ?readBin, the size= option hit me right between the eyes. Guess I was
not sufficiently caffeinated last evening. ;-) Thanks a lot.
Rajiv
> On Mon, 4 Mar 2002, Prasad, Rajiv wrote:
>
> >
> > What is the data type corresponding to short int? ?readBin
> lists "numeric",
> > "double", "integer", "int", "logical", "complex", and
> "character" as the
> > data types -- nothing that seems like a "short".
> >
>
> There is a size= option described in ?readBin
> size: integer. The number of bytes per element in the
> byte stream.
> The default, `NA', uses the natural size. Size changing is
> not supported for complex vectors.
>
> That looks as though it should help.
>
> -thomas
>
--------
Rajiv Prasad
Postdoctoral Research Associate, Hydrology Group
Pacific Northwest National Laboratory, P.O. Box 999, MSIN K9-33
Richland, WA 99352
Voice: (509) 375-2096 Fax: (509) 372-6089 Email: rajiv.prasad at pnl.gov
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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