[R] reading binary file

yudi@ucd.ie yudi at ucd.ie
Mon Oct 18 18:33:30 CEST 1999

Accidentally this only came to me (MM).

------- start of forwarded message (RFC 934 encapsulation) -------

> >>>>> "Yudi" == Yudi Pawitan <yudi at ucd.ie> writes:
>     Yudi> Is there facility in R to read binary file? In Splus scan() has
>     Yudi> 'width=' argument and AsciiToInt() command to translate the
>     Yudi> binary data. Is there something similar in R?

>From  Martin Maechler <maechler at stat.math.ethz.ch>	
> The two simple function  pack8bit() and unpack8bit()  which are now part of
> the wavethresh package on CRAN {{and are applied to store the
> 	       		        picture of John Lennon more efficiently}}
> could come handy here.
Actually I'm trying to read ppm image files that have a mixture of
ASCII characters (describing the content of a file) and binary values. 
Splus can do this. Maybe I have to write a C subroutine?

 Some authors also use TIF or  GIF image files; does anyone have
any experience in getting the actual pixel values so we can process
the image. Any hint is appreciated.

- -Yudi-

- ------------------------------
Yudi Pawitan: yudi at ucd.ie
Department of Statistics, UCD
Dublin 4, Ireland
Ph : 353-1-706 7641
Fax: 353-1-706 1186
- ------------------------------

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