Luca Nanetti
2006-Aug-29 16:59 UTC
[R] Write signed short into a binary file (follow up and conclusion)(for real)
Somebody pointed me to the right spot in the documentation, and kindly and humorously 'suggested' to me to do the following: My Apologies, everybody! I should have read docs a bit better, actually... ...will do better next time! luca ----- 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 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