Displaying 1 result from an estimated 1 matches for "doublevec".
Did you mean:
doublerc
2005 Mar 23
0
Looking for function for Double to raw to double conversions
...XML package does not seem to support it, I just
wrote my own converter from "raw" format to Base64, and back. However one
place I have problems with is conversion from vector of doubles to vector of
"raw"s.
I was expecting equivalent of C casting operation, like:
double *doubleVec;
unsigned char* rawVec;
rawVec = (unsigned char*) doubleVec;
Or if compiler complains:
rawVec = (unsigned char*) ((void*) doubleVec);
Unfortunately I can not find equivalent function in R. Simple minded:
doubleVec = (1:4)*pi
rawVec = as.raw(doubleVec)
as.double(rawVec...