[R] Write signed short into a binary file (follow up and conclusion)(for real)

Luca Nanetti l.nanetti at med.umcg.nl
Tue Aug 29 18:59:57 CEST 2006

Somebody pointed me to the right spot in the documentation, and kindly and 
'suggested' to me to do the following:
My Apologies, everybody!
I should have read docs a bit better, actually...
...will do better next time!

----- Original Message ----- 
From: <L.Nanetti at med.umcg.nl>
To: <>
Sent: Monday, August 28, 2006 4:52 PM
Subject: Write signed short into a binary file (follow up and conclusion)

I've solved my problem using:
(purpose: write the signed integer -19 as a two byte integer into a binary 

writeBin(as.integer(-19),myconnection, size=2)

There is no need to coerce.

Thanks anyway!

Luca NanettiUniversity Medical Center Groningen
A.Deusinglaan 2 9713AW Groningen
The Nethterlands
l dot nanetti at med dot rug dot nl

More information about the R-help mailing list