[R] tried half-precision but "size 2 is unknown on this machine"
Jeff Newmiller
jdnewmil at dcn.davis.CA.us
Sun Jan 4 07:23:36 CET 2015
Your message is missing either a reproducible example or an indication of your R environment (such as the output of sessionInfo()).
Yes, the machine architecture can prevent certain types of operations. This is however a poor venue for discussing such issues.
I suggest that you investigate the hexbin package for binary data handling, and if you still have issues then post again, following the posting guide recommendations.
---------------------------------------------------------------------------
Jeff Newmiller The ..... ..... Go Live...
DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries O.O#. #.O#. with
/Software/Embedded Controllers) .OO#. .OO#. rocks...1k
---------------------------------------------------------------------------
Sent from my phone. Please excuse my brevity.
On January 3, 2015 9:31:02 PM PST, Mike Miller <mbmiller+l at gmail.com> wrote:
>It's an IEEE standard format:
>
>http://en.wikipedia.org/wiki/Half-precision_floating-point_format#IEEE_754_half-precision_binary_floating-point_format:_binary16
>
>This is what I see:
>
>> writeBin(vec , con, size=2 )
>Error in writeBin(vec, con, size = 2) : size 2 is unknown on this
>machine
>
>I'm not sure what the machine has to do with it. It's really up to the
>
>software, isn't it?
>
>Is there a way to get R to read/write half-precision numbers
>(binary16)?
>
>It isn't a big deal for me because unsigned 16-bit integers are working
>
>well enough, but I'd like to have an answer for people who ask why I
>make
>them divide by 1000 all the time. ;-)
>
>Mike
>
>______________________________________________
>R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list