[R] Binary file input to R

Derek N. Eder derek.eder at dss2.med.gu.se
Tue Jun 6 17:04:17 CEST 2000


I suspect that the recent queries about reading database files into R 
implicitely answered my question here, but I'll ask anyway.

Are there any native binary file read routines in R?

I need to a binary data file consisting of 2 byte records, strip off the 
upper 6 bits (using a logical AND, leaving a ten bit word), and then write 
the ten bit number in text form for R.

Assuming that R can't do this, is PERL appropriate?

Thanks.

Derek N. Eder
Göteborg University                                 (privat)
Institute of Clinical Neuroscience,        Landerigatan 2
Section of Psychiatry                              SE 416 70
SU/Sahlgrenska University Hospital    Göteborg, Sweden
SE 413 45 Göteborg, Sweden               tlf +46 (31) 25 40 66

tlf: +46 (31) 34 - 26139
fax: +46 (31) 3182 8163
derek.eder at neuroscience.gu.se


  

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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