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

From: <L.Nanetti_at_med.umcg.nl>
Date: Tue 29 Aug 2006 - 00:52:59 EST


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

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

There is no need to coerce.

Thanks anyway!

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



R-help@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 and provide commented, minimal, self-contained, reproducible code. Received on Tue Aug 29 01:02:38 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 29 Aug 2006 - 02:22:45 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.