[R] Casting in R

Tuszynski, Jaroslaw W. JAROSLAW.W.TUSZYNSKI at saic.com
Fri Mar 25 17:33:06 CET 2005


Yes, XML package does not seem to support Base64 encoding so I wrote my own
encoder/decoder working with "raw" vectors. The only problem is casting R's
vectors of doubles into vectors of type "raw".

Jarek

-----Original Message-----
From: Berton Gunter [mailto:gunter.berton at gene.com] 
Sent: Friday, March 25, 2005 11:28 AM
To: 'Tuszynski, Jaroslaw W.'; r-help at stat.math.ethz.ch
Subject: RE: [R] Casting in R

Have you looked at the XML package on CRAN?

-- Bert Gunter
Genentech Non-Clinical Statistics
South San Francisco, CA
 
"The business of the statistician is to catalyze the scientific learning
process."  - George E. P. Box
 
 

> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch 
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Tuszynski, 
> Jaroslaw W.
> Sent: Friday, March 25, 2005 8:06 AM
> To: (r-help at stat.math.ethz.ch.)
> Subject: [R] Casting in R
> 
> Hi,
> 
> I am looking for functions that would allow me to access raw binary 
> data of R vectors.  One way would be to use:
> 	x = (1:10)*pi
>    	writeBin(x, "temp.bin")
>    	r = readBin("temp.bin", "raw", n=length(x)*8)
> 
> Other to write my own C code. Is there any other simpler way?
> 
> I this message is a rewording of my yesterday message "Looking for 
> function for Double to raw to double conversions", to which I got no 
> replies. I need this functionality to implement Base64 encoding for 
> reading/writing XML files.
> 
> Jarek
> =====================================\====                 
>  Jarek Tuszynski, PhD.                               o / \ 
>  Science Applications International Corporation  <\__,|  
>  (703) 676-4192                        ">  \
>  Jaroslaw.W.Tuszynski at saic.com                   `    \
> 
> 
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html
>




More information about the R-help mailing list